Silverlight - 控件的Parts 和 States model

Karen Corby 写了4篇blog 讲解了Silverlight控件的Parts & States model以及VSM (VisualStateManager),其中第一篇 给出了这个model的几个概念,例如Control Contract, Parts, States。

 

最后一篇 列出了一些推荐,第一个条当然是推荐使用Parts&States model来开发自定义控件,其他还有诸如命名规范的建议。一个有趣的信息是,VSM居然是Silverlight中支持而WPF中尚未支持的一个feature:

 

Silverlight’s Parts & States Model leverages many features (like ControlTemplates, GetTemplateChild() helpers, etc) that already exist in Windows Presentation Foundation.


However, there are some features - namely VisualStateManager and its associated classes - that do not yet exist in WPF.   The good news is that the next version of Windows Presentation Foundation will include VisualStateManager !

你可能感兴趣的:(windows,Blog,include,silverlight,features,WPF)