Beispiel #1
0
        protected override void CreateDefaultAppBarButtons()
        {
            if (IsReloadButtonSupported)
            {
                AppBarItems.Add(new AppBarButton
                {
                    Label = _locService["AppBarButton_Refresh_Text"],
                    Icon  = new FontIcon {
                        Glyph = "\uE117", FontSize = 14
                    },
                    Command = ReloadContentCommand
                });
            }

            AppBarItems.Add(new AppBarButton
            {
                Label = _locService["AppBarButton_Select_Text"],
                Icon  = new FontIcon {
                    Glyph = "\uE133", FontSize = 14
                },
                Command = ActivateSelectionMode
            });

            base.CreateDefaultAppBarButtons();
        }
Beispiel #2
0
        protected virtual void SetDefaultMode()
        {
            AppBarItems.Clear();
            SecondaryItems.Clear();

            CreateDefaultAppBarButtons();
        }
Beispiel #3
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
            }
        }
Beispiel #4
0
        protected virtual void SetSelectionMode()
        {
            AppBarItems.Clear();
            SecondaryItems.Clear();

            CreateSelectionAppBarButtons();
        }
Beispiel #5
0
        protected override void CreateSelectionAppBarButtons()
        {
            AppBarItems.Add(new AppBarButton
            {
                Label = _locService["AppBarButton_SelectAll_Text"],
                Icon  = new FontIcon {
                    Glyph = "\uE0E7"
                },
                Command = new DelegateCommand(() => SelectAll = !SelectAll)
            });

            base.CreateSelectionAppBarButtons();
        }
        protected override void CreateSelectionAppBarButtons()
        {
            AppBarItems.Add(new AppBarButton
            {
                Label = _locService["AppBarButton_Download_Text"],
                Icon  = new FontIcon {
                    Glyph = "\uE118"
                },
                Command = DownloadSelectedCommand
            });

            base.CreateSelectionAppBarButtons();
        }
Beispiel #7
0
        protected override void CreateDefaultAppBarButtons()
        {
            AppBarItems.Add(new AppBarButton
            {
                Label = _locService["AppBarButton_Refresh_Text"],
                Icon  = new FontIcon {
                    Glyph = "\uE117", FontSize = 14
                },
                Command = ReloadCommand
            });

            base.CreateDefaultAppBarButtons();
        }
Beispiel #8
0
        protected override void CreateDefaultAppBarButtons()
        {
            base.CreateDefaultAppBarButtons();

            AppBarItems.Add(new AppBarButton
            {
                Label = _locService["AppBarButton_Filter_Text"],
                Icon  = new FontIcon {
                    Glyph = "\uE16E", FontSize = 14
                },
                Command = ShowFilterFlyoutCommand
            });
        }
Beispiel #9
0
        protected override void CreateDefaultAppBarButtons()
        {
            if (IsShuffleButtonSupported)
            {
                AppBarItems.Add(new AppBarButton
                {
                    Label = _locService["AppBarButton_Shuffle_Text"],
                    Icon  = new FontIcon {
                        Glyph = "\uE14B"
                    },
                    Command = PlayShuffleCommand
                });
            }

            base.CreateDefaultAppBarButtons();
        }
Beispiel #10
0
        protected override void CreateSelectionAppBarButtons()
        {
            if (IsPlayButtonSupported)
            {
                AppBarItems.Add(new AppBarButton
                {
                    Label = _locService["AppBarButton_Play_Text"],
                    Icon  = new FontIcon {
                        Glyph = "\uE102"
                    },
                    Command = PlaySelectedCommand
                });
            }

            base.CreateSelectionAppBarButtons();
        }
        private void UpdateAppBar()
        {
            AppBarItems.Clear();

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

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

                if (_selectedtag != null)
                {
                    AddAppBarItem(_pinTagMenuItem);
                }
            }
        }
Beispiel #13
0
 protected override void OnReloadContentCommand()
 {
     AppBarItems.Clear();
     SecondaryItems.Clear();
     VKTracks.Refresh();
 }
Beispiel #14
0
 protected virtual void HideCommandBar()
 {
     AppBarItems.Clear();
     SecondaryItems.Clear();
 }