level 1
给你写个demo也许有用

<StackPanel Orientation="Horizontal"><ComboBox x:Name="cbo_Demo" Margin="3" Width="180" SelectionChanged="cbo_Demo_SelectionChanged">
</ComboBox>
<TextBox Name="tb" Text="测试文字" Width="80" Height="25" Margin="5"></TextBox>
</StackPanel>
private void Window_Loaded(object sender, RoutedEventArgs e)
{
foreach (FontFamily _f in Fonts.SystemFontFamilies)
{
LanguageSpecificStringDictionary _fontDic = _f.FamilyNames;
if (_fontDic.ContainsKey(XmlLanguage.GetLanguage("zh-cn")))
{
string _fontName = null;
if (_fontDic.TryGetValue(XmlLanguage.GetLanguage("zh-cn"), out _fontName))
{
var item = new ComboBoxItem();
var tempTb = new TextBlock()
{
Text = _fontName,
FontFamily = _f
};
item.Content = tempTb;
cbo_Demo.Items.Add(item);
}
}
}
cbo_Demo.SelectedIndex = 0;
}
private void cbo_Demo_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
var item = cbo_Demo.SelectedItem as ComboBoxItem;
var font = (item.Content as TextBlock).FontFamily;
this.tb.FontFamily = font;
}


