public void OpenFontDialog() { var dialog = new FontDialog { SelectedFontInfo = SelectedFontInfo }; if (dialog.ShowDialog().GetValueOrDefault(false)) { SelectedFontInfo = dialog.SelectedFontInfo; } }
public FontPicker() { InitializeComponent(); SelectedFontInfo = PackedFontInfo.From(this); }