Binding FontStyles and FontWeights to WPF ComboBox
Posted
by Haemoglobin
on Stack Overflow
See other posts from Stack Overflow
or by Haemoglobin
Published on 2010-01-03T11:33:16Z
Indexed on
2010/04/22
8:23 UTC
Read the original article
Hit count: 164
I was just wondering if it would be possible to bind the list of available FontStyles and FontWeights to a ComboBox?
For example, to bind the list of fonts to a combobox you can use: FontComboBox.ItemsSource = Fonts.SystemFontFamilies;
Can I also have something for : FontStyleComboBox.ItemsSource = .... FontWeightComboBox.ItemsSource = .... ?
Would it require reflection on the System.Windows.FontWeights and System.Windows.FontStyles classes or would there be an easier way than that?
Thanks
© Stack Overflow or respective owner