public AboutPage() { InitializeComponent(); DataContext = this; ApplicationBar = ThemeHelper.CreateApplicationBar(); ApplicationBarIconButton rateButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.star.png", UriKind.Relative)); rateButton.Text = AppResources.AboutRateReview; rateButton.Click += Rate_Click; ApplicationBar.Buttons.Add(rateButton); ApplicationBarIconButton contactButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.email.hardedge.png", UriKind.Relative)); contactButton.Text = AppResources.AboutContactUs; contactButton.Click += Contact_Click; ApplicationBar.Buttons.Add(contactButton); ApplicationBarMenuItem storeItem = new ApplicationBarMenuItem("store"); storeItem.Click += StoreItem_Click; ApplicationBar.MenuItems.Add(storeItem); ApplicationBarMenuItem baItem = new ApplicationBarMenuItem("background agent"); baItem.Click += (s, e) => { Navigate(typeof(AboutBAPage)); }; ApplicationBar.MenuItems.Add(baItem); }
private void BuildAppBar() { ApplicationBar = ThemeHelper.CreateApplicationBar(); if (_appBarAddSubtaskButton == null) { _appBarAddSubtaskButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.add.png", UriKind.Relative)); _appBarAddSubtaskButton.Text = AppResources.AppBarAddSubtask; _appBarAddSubtaskButton.Click += AddSubtask_Click; } ApplicationBar.Buttons.Add(_appBarAddSubtaskButton); if (_appBarCompleteAllSubtasksButton == null) { _appBarCompleteAllSubtasksButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.check.all.png", UriKind.Relative)); _appBarCompleteAllSubtasksButton.Text = AppResources.AppBarCompleteAllSubtasks; _appBarCompleteAllSubtasksButton.Click += CompleteAllSubtasks_Click; } ApplicationBar.Buttons.Add(_appBarCompleteAllSubtasksButton); if (_appBarDeleteAllSubtasksButton == null) { _appBarDeleteAllSubtasksButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.delete.all.png", UriKind.Relative)); _appBarDeleteAllSubtasksButton.Text = AppResources.AppBarDeleteAllSubtasks; _appBarDeleteAllSubtasksButton.Click += DeleteAllSubtasks_Click; } ApplicationBar.Buttons.Add(_appBarDeleteAllSubtasksButton); }
private void BuildTitleTextAppBar() { ApplicationBar = ThemeHelper.CreateApplicationBar(); // Ikony ApplicationBar.Buttons.Add(appBarOkButton); }
private void BuildAppBar() { ApplicationBar = ThemeHelper.CreateApplicationBar(); if (IsPinned()) { ApplicationBar.Buttons.Add(appBarUnpinButton); } else { ApplicationBar.Buttons.Add(appBarPinButton); } if (Task.IsActive) { ApplicationBar.Buttons.Add(appBarCompleteButton); } else { ApplicationBar.Buttons.Add(appBarActivateButton); } ApplicationBar.Buttons.Add(appBarDeleteButton); ApplicationBar.Buttons.Add(appBarTileSettingsButton); }
private void BuildDetailTextAppBar() { ApplicationBar = ThemeHelper.CreateApplicationBar(); // Ikony ApplicationBar.Buttons.Add(appBarAddBulletButton); ApplicationBar.Buttons.Add(appBarOkButton); }
private void BuildTasksdAppBar() { ApplicationBar = ThemeHelper.CreateApplicationBar(); foreach (var item in appBarButtons) { ApplicationBar.Buttons.Add(item); } foreach (var item in appBarMenuItems) { ApplicationBar.MenuItems.Add(item); } }
protected virtual void BuildAppBar() { ApplicationBar = ThemeHelper.CreateApplicationBar(); ApplicationBarIconButton appBarDoneButton = new ApplicationBarIconButton(new Uri("/Toolkit.Content/ApplicationBar.Check.png", UriKind.Relative)); appBarDoneButton.Text = AppResources.AppBarDone; appBarDoneButton.Click += Save_Click; ApplicationBar.Buttons.Add(appBarDoneButton); ApplicationBarIconButton appBarCancelButton = new ApplicationBarIconButton(new Uri("/Toolkit.Content/ApplicationBar.Cancel.png", UriKind.Relative)); appBarCancelButton.Text = AppResources.AppBarCancel; appBarCancelButton.Click += Cancel_Click; ApplicationBar.Buttons.Add(appBarCancelButton); }