示例#1
0
 static TextBox()
 {
     FocusableProperty.OverrideDefaultValue(typeof(TextBox), true);
     TextProperty.OverrideMetadata <TextBox>(new StyledPropertyMetadata <string>(defaultBindingMode: BindingMode.TwoWay));
 }
 static Class2()
 {
     FooProperty.OverrideMetadata <Class2>(
         new StyledPropertyMetadata <int>(
             coerce: CoerceFoo));
 }