예제 #1
0
        protected virtual void SetDefaultMode()
        {
            AppBarItems.Clear();
            SecondaryItems.Clear();

            CreateDefaultAppBarButtons();
        }
예제 #2
0
        private void UpdateAppBar()
        {
            AppBarItems.Clear();

            if (IsSelectionEnabled)
            {
                AddAppBarItem(_favoriteButton);
                AddAppBarItem(_deleteButton);
                AddAppBarItem(_saveToMediaMenuItem);
            }
            else
            {
                AddAppBarItem(_selectButton);
                AddAppBarItem(_searchButton);
                AddAppBarItem(_mapButton);

                if (!LicenseHelper.IsPremium)
                {
                    AddAppBarItem(_upgradeMenuItem);
                }

                AddAppBarItem(_pinRecordMenuItem);
                AddAppBarItem(_settingsMenuItem);
                AddAppBarItem(_aboutMenuItem);

#if (DEBUG && BETA) || DEBUG
                AddAppBarItem(_clearIapMenuItem);
#endif
            }
        }
예제 #3
0
        protected virtual void SetSelectionMode()
        {
            AppBarItems.Clear();
            SecondaryItems.Clear();

            CreateSelectionAppBarButtons();
        }
예제 #4
0
        private void UpdateAppBar()
        {
            AppBarItems.Clear();

            if (IsSelectionEnabled)
            {
                AddAppBarItem(_removeButton);
                AddAppBarItem(_deleteButton);
                AddAppBarItem(_saveToMediaMenuItem);
            }
            else
            {
                AddAppBarItem(_selectButton);
                AddAppBarItem(_pinFavoritesMenuItem);
            }
        }
예제 #5
0
        private void UpdateAppBar()
        {
            AppBarItems.Clear();

            if (IsSelectionEnabled)
            {
                AddAppBarItem(_favoriteButton);
                AddAppBarItem(_deleteButton);
                AddAppBarItem(_saveToMediaMenuItem);
            }
            else
            {
                AddAppBarItem(_selectButton);
                AddAppBarItem(_searchButton);

                if (_selectedtag != null)
                {
                    AddAppBarItem(_pinTagMenuItem);
                }
            }
        }
예제 #6
0
 protected override void OnReloadContentCommand()
 {
     AppBarItems.Clear();
     SecondaryItems.Clear();
     VKTracks.Refresh();
 }
예제 #7
0
 protected virtual void HideCommandBar()
 {
     AppBarItems.Clear();
     SecondaryItems.Clear();
 }