如何在flowdocument中添加fontchooser和colorpicker [英] how to add fontchooser and colorpicker in flowdocument
本文介绍了如何在flowdocument中添加fontchooser和colorpicker的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的问题是如何在flowdocument中添加这两种功能.如果我选择红色,则我的flowdocument段落应为红色.如果我选择字体Arial,则我的流程文档段落应为Arial字体.
我正在等待回复..谢谢
解决方案
应该有很多这样的例子.一种方法是在编写新文本时使用绑定.另一种方法是对鼠标事件进行硬编码,例如使用下拉菜单进行选择.
如果这样做不能回答您的问题,请提供一些代码示例,并说明您是否卡住了...
i have two combobox. one is colorpicker and second one is font-chooser..
my question is how to add both functionality in flowdocument.if i choose red color then my flowdocument paragraph should be red.if i choose font Arial then my flow document paragraph should be Arial font.
i m waiting for reply..thanks
解决方案
There should be plenty of examples of this. One way to do this is by using binding when writng new text. The other way would be to hard code it on mouse events, like select with a drop down menu.
If this does nto answer your question the please provide some code samples and show were you re stuck...
这篇关于如何在flowdocument中添加fontchooser和colorpicker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文