在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

相关文章:

  • 2021-12-28
  • 2021-11-27
  • 2021-06-13
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2022-12-23
  • 2021-06-20
  • 2022-12-23
  • 2021-10-20
相关资源
相似解决方案