次の XAML が入力されているフォント ファミリ コンボボックスの選択した値を設定しようとしています。
<ComboBox ItemsSource="{x:Static Fonts.SystemFontFamilies}" Name="cboFont">
<ComboBox.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel MinWidth="256" />
</ItemsPanelTemplate>
</ComboBox.ItemsPanel>
<ComboBox.ItemTemplate>
<DataTemplate>
<TextBlock Margin="2" Text="{Binding}" FontFamily="{Binding}"/>
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
コンボボックスを設定する必要があるフィールドは文字列ですが、それによって FormatExceptions が発生します。コンボボックスが期待するクラスと、「Arial」などの文字列をその形式に変換する方法をすぐに教えてもらえますか?