Inheritance: System.Windows.Controls.ItemsControl, IApplicationBar
コード例 #1
0
        private static void ForegroundColorChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            BindableAppBar bab   = (BindableAppBar)d;
            Color          value = (Color)e.NewValue;

            bab.ApplicationBar.ForegroundColor = value;
            bab._selectedForegroundColor       = value;
        }
コード例 #2
0
        private static void OnVisibilityChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            if (e.NewValue != e.OldValue)
            {
                var            button = ((BindableAppBarMenuItem)d);
                BindableAppBar bar    = button.Parent as BindableAppBar;

                bar.Invalidate();
            }
        }
コード例 #3
0
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/CarDashboardNew;component/Views/MainPage.xaml", System.UriKind.Relative));
     this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
     this.TitlePanel = ((System.Windows.Controls.StackPanel)(this.FindName("TitlePanel")));
     this.Artist = ((System.Windows.Controls.TextBlock)(this.FindName("Artist")));
     this.Title = ((System.Windows.Controls.TextBlock)(this.FindName("Title")));
     this.ContentPanel = ((System.Windows.Controls.Grid)(this.FindName("ContentPanel")));
     this.PauseResume = ((Microsoft.Phone.Controls.HubTile)(this.FindName("PauseResume")));
     this.PreviousSong = ((Microsoft.Phone.Controls.HubTile)(this.FindName("PreviousSong")));
     this.NextSong = ((Microsoft.Phone.Controls.HubTile)(this.FindName("NextSong")));
     this.Shuffle = ((Microsoft.Phone.Controls.HubTile)(this.FindName("Shuffle")));
     this.Repeat = ((Microsoft.Phone.Controls.HubTile)(this.FindName("Repeat")));
     this.AppBar = ((Caliburn.Micro.BindableAppBar.BindableAppBar)(this.FindName("AppBar")));
     this.BuyTheApp = ((Caliburn.Micro.BindableAppBar.BindableAppBarMenuItem)(this.FindName("BuyTheApp")));
     this.ShowSettings = ((Caliburn.Micro.BindableAppBar.BindableAppBarMenuItem)(this.FindName("ShowSettings")));
 }