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(); }); }
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(); }); }