Silverlight dependency property属性的定义
2010-05-05 20:06
375 查看
具体如下:
public static readonly DependencyProperty IsSpinningProperty =
DependencyProperty.Register(
"IsSpinning", typeof(Boolean),
typeof(SilverlightExampleClass), null
);
public bool IsSpinning
{
get { return (bool)GetValue(IsSpinningProperty); }
set { SetValue(IsSpinningProperty, value); }
}
引用http://msdn.microsoft.com/en-us/library/cc221408
public static readonly DependencyProperty IsSpinningProperty =
DependencyProperty.Register(
"IsSpinning", typeof(Boolean),
typeof(SilverlightExampleClass), null
);
public bool IsSpinning
{
get { return (bool)GetValue(IsSpinningProperty); }
set { SetValue(IsSpinningProperty, value); }
}
引用http://msdn.microsoft.com/en-us/library/cc221408
相关文章推荐
- WF,WPF,Silverlight的DependencyProperty 附加属性
- [Silverlight]监听指定控件(FrameworkElement)的依赖属性(DependencyProperty)的更改
- Silverlight:Dependency Property(依赖属性)学习笔记
- Silverlight:Dependency Property(依赖属性)学习笔记
- Silverlight:Dependency Property(依赖属性)
- WPF 使用依赖属性(DependencyProperty) 定义用户控件中的Image Source属性
- Silverlight:Dependency Property(依赖属性)学习笔记
- Silverlight:Dependency Property(依赖属性)学习笔记
- Silverlight&WPF依赖属性DependencyProperty讲解
- 一站式WPF--依赖属性(DependencyProperty)二
- Silverlight 用DependencyProperty 自定义ImageButton控件 定义属性
- Silverlight DependencyObject 依赖属性
- 隶属于普通类型(与DependencyObject和DependencyProperty相区别)的属性的绑定
- 理解Silverlight - Dependency Properties 依赖属性
- WPF学习笔记8: 依赖属性(Dependency Property)
- #118 – Don’t Add Code to Dependency Property Getter/Setter(不要在依赖属性的Getter/Setter中加入处理代码)
- #123 – Coercing a Dependency Property(强制转换依赖属性的值)
- #128 – Using Code Snippets to Implement a Dependency Property(用代码段实现依赖属性)
- windows phone之依赖属性(DependencyProperty)
- #154 – Reusing an Existing Dependency Property in Your Class(重用依赖属性)