Example #1
0
 private void SetupMenu()
 {
     _shellVm.PropertyChanged += OnShellVMPropertyChanged;
     LibraryItem.Shortcuts.Add(new Shortcut
     {
         SymbolAsChar    = "\uE762",
         Tooltip         = "Enable Multiselection",
         ShortcutCommand = (Application.Current.Resources["LibVM"] as LibraryViewModel).ChangeSelectionModeCommand
     });
     NowPlayingItem.Command  = _shellVm.NavigateToNowPlayingViewCommand;
     watchAdMenuItem.Command = new DelegateCommand(async() =>
     {
         DonateDialog dialog = new DonateDialog();
         await dialog.ShowAsync();
     });
 }
Example #2
0
 private void SetupMenu()
 {
     Messenger.Instance.Register(MessageTypes.MsgNavigate, new Action <Message>(HandleNavigationMessage));
     LibraryItem.Shortcuts.Add(new Shortcut
     {
         SymbolAsChar    = "\uE762",
         Tooltip         = "Enable Multiselection",
         ShortcutCommand = (Application.Current.Resources["LibVM"] as LibraryViewModel).ChangeSelectionModeCommand
     });
     NowPlayingItem.Command  = _shellVm.NavigateToNowPlayingViewCommand;
     watchAdMenuItem.Command = new DelegateCommand(async() =>
     {
         DonateDialog dialog = new DonateDialog();
         await dialog.ShowAsync();
     });
 }