예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        private void BuildTitleTextAppBar()
        {
            ApplicationBar = ThemeHelper.CreateApplicationBar();

            // Ikony
            ApplicationBar.Buttons.Add(appBarOkButton);
        }
예제 #4
0
        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);
        }
예제 #5
0
        private void BuildDetailTextAppBar()
        {
            ApplicationBar = ThemeHelper.CreateApplicationBar();

            // Ikony
            ApplicationBar.Buttons.Add(appBarAddBulletButton);
            ApplicationBar.Buttons.Add(appBarOkButton);
        }
예제 #6
0
        private void BuildTasksdAppBar()
        {
            ApplicationBar = ThemeHelper.CreateApplicationBar();

            foreach (var item in appBarButtons)
            {
                ApplicationBar.Buttons.Add(item);
            }
            foreach (var item in appBarMenuItems)
            {
                ApplicationBar.MenuItems.Add(item);
            }
        }
예제 #7
0
        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);
        }