现在的位置: 首页 > 综合 > 正文

WPF/Silverlight的UI和逻辑完全分离

2014年09月05日 ⁄ 综合 ⁄ 共 699字 ⁄ 字号 评论关闭

在WPF/Silverlight的自定义控件上UI与Style (ControlTemplate)的分离上是由一个共同的约定的,这其中的角色就是TemplatePart。可以参照以下几个链接的说明:

在WPF中自定义控件(3) CustomControl (下):http://www.cnblogs.com/zhouyinhui/archive/2007/12/01/979715.html

Smooth animations, at the Window level:http://pavanpodila.spaces.live.com/blog/cns!9C9E888164859398!634.entry

何创建使用 ControlTemplate 的控件:http://msdn.microsoft.com/zh-cn/library/cc964292(VS.95).aspx

Navigable Grid in Silverlight 2, supporting Page Navigation for List Controls such as DataGrid:http://www.codeproject.com/KB/silverlight/NavigableGrid.aspx

理解silverlight 2.0中的Templated Control:http://silverlight.cn/index.php?q=node/597

Silverlight的TemplatePartAttribute用法:http://www.cnblogs.com/think8848/archive/2008/12/07/1349575.html

抱歉!评论已关闭.