开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜