日期:2014-05-18 浏览次数:20893 次
public class TestModel : DependencyObject
{
public string Test
{
get
{
return ((string)(GetValue(TestProperty)));
}
set
{
SetValue(TestProperty, value);
}
}
/// <summary>
/// Using a DependencyProperty as the backing store for BondSecurityNameForBinding. This enables animation, styling, binding, etc...
/// </summary>
public static DependencyProperty TestProperty = DependencyProperty.Register("Test", typeof(string), typeof(TestModel));
}