C# WPF 代码编辑时 依赖项属性代码段的 快捷
程序员文章站
2022-06-08 22:19:46
...
C# WPF代码编辑时 依赖项属性代码段的 快捷输入propdp+tab+tab
会自动产生如下代码段:
public int MyProperty
{
get { return (int)GetValue(MyPropertyProperty); }
set { SetValue(MyPropertyProperty, value); }
}
// Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc...
public static readonly DependencyProperty MyPropertyProperty = DependencyProperty.Register("MyProperty", typeof(int), typeof(ownerclass), new PropertyMetadata(0));
上一篇: jsp标签