开发者

Silverlight does not support dynamic resources: what does this mean?

开发者 https://www.devze.com 2023-02-06 07:36 出处:网络
It is said here: http://msdn.microsoft.com/en-us/library/cc903925(VS.95).aspx Silverlight does not support dynamic resources. All resource references to keyed resources in XAML are static. For more i

It is said here: http://msdn.microsoft.com/en-us/library/cc903925(VS.95).aspx

Silverlight does not support dynamic resources. All resource references to keyed resources in XAML are static. For more information, see Resources Overview.

I looked at resources Overview but still don't u开发者_开发百科nderstand what they mean. Can someone explain: does it mean I cannot xamlreader to change user intreface dynamically ?


You can use XAML-Reader in silverlight to build dynamically changing interfaces. Set for example the ControlTemplate of a control to a ControlTemplate you have loaded or created with XamlReader.

However you can not change resources (for examle a ControlTemplate in a ResourceDictionary) during runtime and expect them to change the content in currently used elements.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号