static IntBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(IntBox), new FrameworkPropertyMetadata(typeof(IntBox))); NumberStylesProperty.OverrideMetadataWithDefaultValue(typeof(NumericBox <int>), typeof(IntBox), NumberStyles.Integer); IncrementProperty.OverrideMetadataWithDefaultValue(typeof(IntBox), 1); }
static DecimalBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(DecimalBox), new FrameworkPropertyMetadata(typeof(DecimalBox))); NumberStylesProperty.OverrideMetadataWithDefaultValue(typeof(NumericBox <decimal>), typeof(DecimalBox), NumberStyles.Currency); IncrementProperty.OverrideMetadataWithDefaultValue <decimal>(typeof(DecimalBox), 1); }
static FloatBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(FloatBox), new FrameworkPropertyMetadata(typeof(FloatBox))); NumberStylesProperty.OverrideMetadataWithDefaultValue(typeof(NumericBox <float>), typeof(FloatBox), NumberStyles.Float); IncrementProperty.OverrideMetadataWithDefaultValue <float>(typeof(FloatBox), 1); }
static UIntBox() { DefaultStyleKeyProperty.OverrideMetadata(typeof(UIntBox), new FrameworkPropertyMetadata(typeof(UIntBox))); NumberStylesProperty.OverrideMetadataWithDefaultValue(typeof(NumericBox <uint>), typeof(UIntBox), NumberStyles.AllowTrailingWhite | NumberStyles.AllowLeadingWhite); IncrementProperty.OverrideMetadataWithDefaultValue <uint>(typeof(UIntBox), 1); }