Example #1
0
 /// <summary>
 ///     Sets the ApplicationBar property. This dependency property
 ///     indicates the BindableApplicationBar instance associated with
 ///     a page.
 /// </summary>
 /// <param name="d">The dependency object.</param>
 /// <param name="value">The new value.</param>
 public static void SetApplicationBar(
     DependencyObject d, BindableApplicationBar value)
 {
     d.SetValue(ApplicationBarProperty, value);
 }
Example #2
0
        private void OnDisableThirdMenu(object sender, RoutedEventArgs e)
        {
            var bar = BindableApplicationBar.GetApplicationBar(this);

            bar.MenuItems[2].IsEnabled = !bar.MenuItems[2].IsEnabled;
        }
Example #3
0
        private void OnDisableSecondButton(object sender, RoutedEventArgs e)
        {
            var bar = BindableApplicationBar.GetApplicationBar(this);

            bar.Buttons[1].IsEnabled = !bar.Buttons[1].IsEnabled;
        }
Example #4
0
        private void OnHideSecondMenu(object sender, RoutedEventArgs e)
        {
            var bar = BindableApplicationBar.GetApplicationBar(this);

            bar.MenuItems[1].IsVisible = !bar.MenuItems[1].IsVisible;
        }
Example #5
0
        private void OnHideFirstButton(object sender, RoutedEventArgs e)
        {
            var bar = BindableApplicationBar.GetApplicationBar(this);

            bar.Buttons[0].IsVisible = !bar.Buttons[0].IsVisible;
        }