예제 #1
0
        void ChangeFont()
        {
            var fontView = views.CreateFontView();

            if (fontView.ShowModal() ?? false)
            {
                // This is not ideal but the entire app is not MVVM, so there's really no other option.
                App.Current.ClientFont = (fontView.ViewModel as FontDialog).SelectedFont;
            }
        }