BindableApplicationBar.BindableApplicationBar.OnMenuItemsChanged C# (CSharp) Method

OnMenuItemsChanged() private static method

Handles changes to the MenuItems property.
private static OnMenuItemsChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject /// The on which /// the property has changed value. ///
e System.Windows.DependencyPropertyChangedEventArgs /// Event data that is issued by any event that /// tracks changes to the effective value of this property. ///
return void
        private static void OnMenuItemsChanged(
            DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            BindableApplicationBar target = (BindableApplicationBar)d;
            DependencyObjectCollection<BindableApplicationBarMenuItem> oldMenuItems =
                (DependencyObjectCollection<BindableApplicationBarMenuItem>)e.OldValue;
            DependencyObjectCollection<BindableApplicationBarMenuItem> newMenuItems =
                target.MenuItems;
            target.OnMenuItemsChanged(oldMenuItems, newMenuItems);
        }

Same methods

BindableApplicationBar::OnMenuItemsChanged ( DependencyObjectCollection oldMenuItems, DependencyObjectCollection newMenuItems ) : void