How to open Color and Font Dialog box using WPF?

前端 未结 2 385
Happy的楠姐
Happy的楠姐 2021-01-13 12:06

I want to show the color and font dialog box in WPF .net 4.5, how to can I do? Please help me anybody.

Thnx in Advanced!

2条回答
  •  孤街浪徒
    2021-01-13 13:09

    You can use classes from System.Windows.Forms, there is nothing wrong with using them. You'll probably need to convert values to WPF-specific though.

    Alternatively, you can implement your own dialogs or use third-party controls, see Free font and color chooser for WPF?.

提交回复
热议问题