wpf依赖属性详解

时间:2017-03-05 13:27:39
【文件属性】:
文件名称:wpf依赖属性详解
文件大小:2.27MB
文件格式:RAR
更新时间:2017-03-05 13:27:39
依赖属性 依赖属性详解,有源码 //传入ownerType增加Owner public DependencyProperty AddOwner(Type ownerType) { return AddOwner (ownerType, null); } //增加所有者,根据ownerType和typeMetadata public DependencyProperty AddOwner(Type ownerType, PropertyMetadata typeMetadata) { if (typeMetadata == null) typeMetadata = new PropertyMetadata (); OverrideMetadata (ownerType, typeMetadata); // MS seems to always return the same DependencyProperty return this; } //获取元数据,依据forType public PropertyMetadata GetMetadata(Type forType) { if (metadataByType.ContainsKey (forType)) return metadataByType[forType]; return null; } //获取元数据,依据该依赖属性 public PropertyMetadata GetMetadata(DependencyObject d) { if (metadataByType.ContainsKey (d.GetType())) return metadataByType[d.GetType()]; return null; }
【文件预览】:
WPF基础到企业应用系列7——深入剖析依赖属性(WPF-Silverlight核心) - 圣殿骑士 - 博客园_files
----btnsearch.gif(663B)
----51381.css(1KB)
----2010-8-26%200-51-57_thumb.png(93KB)
----2010-8-26%201-14-30_thumb.png(70KB)
----2010-8-26%200-49-19_thumb.png(204KB)
----blog-common.js(53KB)
----first_thumb.png(83KB)
----vsprin_thumb.png(102KB)
----2010-8-26%2010-33-42_thumb.png(158KB)
----skin.js(2KB)
----ReadOnly_DPs_thumb.png(94KB)
----2010-8-26%200-50-36_thumb.png(111KB)
----jquery.js(92KB)
----blog-common.css(37KB)
----Attached_Properties_thumb_1.png(68KB)
----2010-8-26%201-29-16_thumb.png(137KB)
----2010-8-26%2019-14-21_thumb.png(146KB)
----KnightsCommentButton4.css(447B)
----zz_1.htm(383B)
----2010-8-26%209-12-59_thumb.png(146KB)
----DependencyPropertiesDemo_thumb.png(189KB)
----proinher_thumb.png(76KB)
----2010-8-26%2015-20-38_thumb.png(45KB)
----2010-8-26%2018-52-44_thumb.png(175KB)
----2010-8-26%2018-38-50_thumb.png(264KB)
----ClearLocallySetValues_thumb_1.png(101KB)
----style.css(21KB)
WPF基础到企业应用系列7——深入剖析依赖属性(WPF-Silverlight核心) - 圣殿骑士 - 博客园.htm

网友评论