protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            DataContext = e.Parameter;
            self        = DataContext as ProgressItem;
            //StatusBar.GetForCurrentView().BackgroundColor = Color.FromArgb(0, 0, 0, 1);

            StatusBar.GetForCurrentView().BackgroundColor = (e.Parameter as ProgressItem).Color;
            //this.BottomAppBar.Background = new SolidColorBrush((e.Parameter as ProgressItem).Color);
            this.BottomAppBar.Foreground = new SolidColorBrush(Colors.White);
            StatusBar.GetForCurrentView().BackgroundOpacity = 1;
            StatusBar.GetForCurrentView().ForegroundColor   = Colors.White;

            var uriLogo = new Uri("ms-appx:///Assets/Logo.scale-240.png");

            //var uriSmallLogo = new Uri("ms-appx:///images/smallLogoSecondaryTile-sdk.png");

            Core.SaveAllItems();
        }
Exemplo n.º 2
0
        private void AppBarButton_Click(object sender, RoutedEventArgs e)
        {
            //adding
            ProgressItem item = new ProgressItem()
            {
                Name    = "",
                Minimum = 0,
                Maximum = 100,
                Value   = 35,
                Color   = Color.FromArgb(255, (byte)random.Next(255),
                                         (byte)random.Next(255),
                                         (byte)random.Next(255)),
                ID    = Guid.NewGuid().ToString(),
                Units = "",
                Tags  = ""
            };

            Core.items.Add(item);
            Frame.Navigate(typeof(DetailsPage), item);
        }
Exemplo n.º 3
0
 void ProgressItemControl_DataContextChanged(FrameworkElement sender, DataContextChangedEventArgs args)
 {
     item = DataContext as ProgressItem;
 }