public GameTabViewModel() { DeckEditorFont = new GameFontItemModel(ViewModelLocator.GameLoader.Game.DeckEditorFont); ContextFont = new GameFontItemModel(ViewModelLocator.GameLoader.Game.ContextFont); NotesFont = new GameFontItemModel(ViewModelLocator.GameLoader.Game.NoteFont); ChatFont = new GameFontItemModel(ViewModelLocator.GameLoader.Game.ChatFont); Messenger.Default.Register <PropertyChangedMessage <Game> >(this, x => { this.RaisePropertyChanged(string.Empty); }); }
public GameFontTabViewModel() { DeckEditorFont = new GameFontItemModel(ViewModelLocator.GameLoader.Game.DeckEditorFont); ContextFont = new GameFontItemModel(ViewModelLocator.GameLoader.Game.ContextFont); NotesFont = new GameFontItemModel(ViewModelLocator.GameLoader.Game.NoteFont); ChatFont = new GameFontItemModel(ViewModelLocator.GameLoader.Game.ChatFont); EnterChatCommand = new RelayCommand(EnterChat); EscChatCommand = new RelayCommand(EscapeChat); Menu = new List <Control>(); var header = new MenuItem(); header.Header = "Sample Menu"; header.SetResourceReference(UserControl.StyleProperty, "MenuHeader"); Menu.Add(header); Menu.Add(new Separator()); Menu.Add(new MenuItem { Header = "bb" }); }