允许用户从UI更改资源字典画笔颜色 [英] Allow the user to change a resource dictionary brush colour from UI
本文介绍了允许用户从UI更改资源字典画笔颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以创建一个xaml接口以允许用户实时更改资源字典中的颜色并立即查看更改?我的目标是允许用户更改应用程序的背景颜色,在设计时将其作为画笔存储在资源字典中。
感谢您的帮助
Purkiss
Is it possible to create a xaml interface to allow the user to change a colour in a resource dictionary in real time and see the change instantly? My goal here is to allow the user to change the background colour of the application, which is stored as a brush in a resource dictionary at design time.
Thank you for any assistance
Purkiss
推荐答案
使用UI我们可以更改画笔资源颜色,它将反映在表单/应用程序级别上使用的其他控件上。请观看Microsoft关于此 http://expression.microsoft.com/en-us的优秀培训视频/cc264437.aspx
我希望这对你有所帮助:)
Using the UI we can change the Brush Resource Color which will reflect on the other controls used on the form/application level.
Please watch the excellent training video from Microsoft regarding this http://expression.microsoft.com/en-us/cc264437.aspx
I hope this will help you :)
这篇关于允许用户从UI更改资源字典画笔颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文