private void OnStateChanged(object sender, ApplicationBarStateChangedEventArgs e)
		{
			if (this.StateChanged != null)
			{
				this.StateChanged(this, e);
			}
		}
Exemple #2
0
        private void ApplicationBar_StateChanged(object sender, Microsoft.Phone.Shell.ApplicationBarStateChangedEventArgs e)
        {
            var        appBar     = sender as ApplicationBar;
            Storyboard storyboard = e.IsMenuVisible ? (Storyboard)Resources["AppBarFadeInStoryboard"] : (Storyboard)Resources["AppBarFadeOutStoryboard"];

            storyboard.Begin();
        }
        private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
        {
            ApplicationBar bar = (ApplicationBar)sender;

            if (e.IsMenuVisible)
                bar.Opacity = 1;
            else
                bar.Opacity = 0;
        }
Exemple #4
0
 private void ApplicationBar_StateChanged(object sender, Microsoft.Phone.Shell.ApplicationBarStateChangedEventArgs e)
 {
     if (e.IsMenuVisible)
     {
         (sender as ApplicationBar).Opacity = 1;
     }
     else if (!e.IsMenuVisible)
     {
         (sender as ApplicationBar).Opacity = 0;
     }
 }
        private void OnApplicationBarStateChanged(object sender, ApplicationBarStateChangedEventArgs e)
        {
            var appBar = sender as ApplicationBar;
            if (appBar == null) return;

            appBar.Opacity = e.IsMenuVisible ? 1 : .65;
        }
 private void ApplicationBarStateChanged(
     object sender, ApplicationBarStateChangedEventArgs e)
 {
     this.isMenuVisible = e.IsMenuVisible;
     this.IsMenuVisible = this.isMenuVisible;
 }
 private void appBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     //switch (appBarState++)
     //{
     //    case 0:
     //        ApplicationBar.IsMenuEnabled = false;
     //        ApplicationBar.Mode = ApplicationBarMode.Default;
     //        ApplicationBar.IsMenuEnabled = true;
     //        break;
     //    case 2:
     //        ApplicationBar.Mode = ApplicationBarMode.Minimized;
     //        break;
     //    case 4:
     //        ApplicationBar.IsMenuEnabled = false;
     //        ApplicationBar.Mode = ApplicationBarMode.Default;
     //        ApplicationBar.Mode = ApplicationBarMode.Minimized;
     //        ApplicationBar.IsMenuEnabled = true;
     //        appBarState = 0;
     //        break;
     //}
 }
Exemple #8
0
 private void AppplicationBar_Opened(object sender, ApplicationBarStateChangedEventArgs e)
 {
     ApplicationBar.Opacity = e.IsMenuVisible ? 0.99 : 0.0;
 }
 private void ApplicationBar_StateChanged(object sender, Microsoft.Phone.Shell.ApplicationBarStateChangedEventArgs e)
 {
 }
 void Appbar_StateChanged(object sender, ApplicationBarStateChangedEventArgs args)
 {
     var opacity = this.ApplicationBar.Opacity;
     this.ApplicationBar.Opacity = args.IsMenuVisible ? 1 : PreviousOpacity;
     this.PreviousOpacity = opacity;
 }
 private void AppBar_Shown(object sender, ApplicationBarStateChangedEventArgs e)
 {
     SystemTray.IsVisible = e.IsMenuVisible;
     (ApplicationBar.Buttons[0] as ApplicationBarIconButton).Text = ArticleViewModel.FavoriteText;
     (ApplicationBar.Buttons[0] as ApplicationBarIconButton).IconUri = ArticleViewModel.FavoriteIconUri;
 }
 private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     if (e.IsMenuVisible)
         ApplicationBar.Opacity = 0.9;
     else
         ApplicationBar.Opacity = 0.5;
 }
 void ApplicationBarStateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     if (StateChanged != null)
         StateChanged(this, e);
 }
 private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
 }
 private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     ApplicationBar appbar = sender as ApplicationBar;
     if (e.IsMenuVisible)
     {
         appbar.Opacity = 0.8;
     }
     else {
         appbar.Opacity = 0;
     }
 }
 private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     ApplicationBar.Opacity = e.IsMenuVisible ? StoryPage.APP_BAR_ACTIVE_OPACITY : StoryPage.APP_BAR_INACTIVE_OPACITY;
 }
 private void menu_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     var m = sender as ApplicationBar;
     if (e.IsMenuVisible)
         m.BackgroundColor = (System.Windows.Media.Color)App.Current.Resources["PhoneChromeColor"];
     else
         m.BackgroundColor = Colors.Transparent;
 }
 private void ApplicationBarStateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     this.ApplicationBar.Opacity = (this.ApplicationBar.Opacity == 1.0) ? 0.8 : 1.0;
 }
 /// <summary>
 /// <see cref="ApplicationBar.StateChanged"/> event handler.
 /// </summary>
 /// <param name="sender">Event sender.</param>
 /// <param name="e">The <see cref="ApplicationBarStateChangedEventArgs"/> instance containing the event data.</param>
 private void ApplicationBarOnStateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     ApplicationBar appBar = sender as ApplicationBar;
     if (appBar != null)
     {
         appBar.Opacity = e.IsMenuVisible ? 0.99 : Constants.DefaultApplicationBarOpacity;
     }
 }
        private void ApplicationBarStateChanged(object sender, ApplicationBarStateChangedEventArgs e)
        {
            var eventHandler = StateChanged;

            if (eventHandler != null)
            {
                eventHandler(sender, e);
            }

            var command = StateChangedCommand;

            if (command != null)
            {
                var commandParameter = e;

                if (command.CanExecute(commandParameter))
                {
                    command.Execute(commandParameter);
                }
            }
        }
 private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     SetGameStateMenuState();
 }
 private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("IsMenuVisible: " + e.IsMenuVisible);
 }
 void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("ApplicationBar_StateChanged");
     try
     {
         browser.InvokeScript("updateButtonAndMenusLabels");
     }
     catch (Exception)
     {
     }
 }
Exemple #24
0
 void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     if (ApplicationBar.BackgroundColor == Colors.Transparent)
         ApplicationBar.BackgroundColor = Colors.Black;
     else
         ApplicationBar.BackgroundColor = Colors.Transparent;
 }
 private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     base.ApplicationBar.Opacity = e.IsMenuVisible ? 0.76 : 0.5;
 }
 private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
 {
     ((IApplicationBar)sender).Opacity = e.IsMenuVisible ? 0.999 : 0.5;
 }
Exemple #27
0
        private void ApplicationBar_StateChanged(object sender, ApplicationBarStateChangedEventArgs e)
        {
            ApplicationBar appBar = (ApplicationBar)sender;

            if (e.IsMenuVisible == true)
                appBar.Opacity = 1;
            else
                appBar.Opacity = 0.5;
        }