private void OpenStyleWindow() { var fontWindow = new FontWindow(); fontWindow.DataContext = Format; fontWindow.ShowDialog(); }
void OnfontMenuClick(object sender, RoutedEventArgs e) { FontWindow fw = new FontWindow(); fw.Title = "글꼴"; fw.Owner = Owner; fw.Font = FontInfo.GetControlFont(this.beforeTextBox); if (fw.ShowDialog() == true) { FontInfo selectedFont = fw.Font; if (selectedFont != null) { FontInfo.ApplyFont(this.beforeTextBox, selectedFont); FontInfo.ApplyFont(this.afterTextBox, selectedFont); } } }