Fill ComboBox with List of available Fonts

后端 未结 7 2239
無奈伤痛
無奈伤痛 2020-12-10 00:29

How can I fill a combo-box with a list of all the available fonts in the system?

相关标签:
7条回答
  • 2020-12-10 01:03

    You can just bind like this:

    ItemsSource="{Binding Source={x:Static Fonts.SystemFontFamilies}}"
    
    0 讨论(0)
提交回复
热议问题