Exemplo n.º 1
0
        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);
            });
        }
Exemplo n.º 2
0
        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"
            });
        }