摘要:
普通List集合数据绑定 在数据源中建立一个list数组,设置ListBox的ItemsSource属性指定list数组 public class DataSource { public string Name { get; set; } = "Hello"; public ObservableCo 阅读全文
摘要:
依赖附加属性的定义 可使用代码片段-propa快速生成,输入propa后按两次Tab键 public static int GetMyProperty(DependencyObject obj) { return (int)obj.GetValue(MyPropertyProperty); } pu 阅读全文
摘要:
依赖属性定义 可使用代码片段-propdp快速生成,输入propdp后按两次Tab键 public int MyProperty { get { return (int)GetValue(MyPropertyProperty); } set { SetValue(MyPropertyProperty 阅读全文