Displaying FontFamily in Combobox

后端 未结 3 1809
闹比i
闹比i 2021-02-15 17:04

My goal is to manipulate the text-styles of my application via DependencyProperties. I got a diagram in which the texts are to be manipulated in size, fontfamily, color, etc. So

3条回答
  •  别那么骄傲
    2021-02-15 17:33

    A great Font Combobox for WPF can be found here:

    CodeProject.com: A XAML-Only Font ComboBox

    It is pure XAML, can be just copied/pasted and even sorts the fonts properly. The article also describes nicely all the gotchas encountered and how to solve them.

提交回复
热议问题