用户控制的动态资源 [英] dynamic resource for usercontrol

查看:70
本文介绍了用户控制的动态资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为文本框用户控件提供用户动态资源样式.该样式应在用户控件本身中实现.如果您找到解决方案,请建议我

i want to user dynamic resource style for text box user control. that style should be implemented in user control itself. please suggest me if u find solution

推荐答案

查找以下对相同有用的链接.

http://www.betterthaneveryone.com/archive/2009/06/28/870.aspx

http://social.msdn.microsoft.com/论坛/en-SG/wpf/thread/1945f9ce-8eb7-456a-8e1e-ae226bba6805

http://forums.silverlight.net/t/142406.aspx/1


希望有帮助!
Find following links useful for the same.

http://www.betterthaneveryone.com/archive/2009/06/28/870.aspx

http://social.msdn.microsoft.com/Forums/en-SG/wpf/thread/1945f9ce-8eb7-456a-8e1e-ae226bba6805

http://forums.silverlight.net/t/142406.aspx/1


Hope this help!


将样式放在用户控件XAML的UserControl.Resources部分中:

Put your styles in a UserControl.Resources section in your user control XAML :

<UserControl.Resources>

...your styles goes here...

</UserControl.Resources>



希望对您有所帮助.



Hope it helps.


这篇关于用户控制的动态资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆