static VisibleColumnDefinition() { WidthProperty.AddOwner(typeof(VisibleColumnDefinition), new FrameworkPropertyMetadata(WidthProperty.DefaultMetadata.DefaultValue, OnWidthChanged)); MinWidthProperty.AddOwner(typeof(VisibleColumnDefinition), new FrameworkPropertyMetadata(MinWidthProperty.DefaultMetadata.DefaultValue, OnMinWidthChanged)); MaxWidthProperty.AddOwner(typeof(VisibleColumnDefinition), new FrameworkPropertyMetadata(MaxWidthProperty.DefaultMetadata.DefaultValue, OnMaxWidthChanged)); }
/// <summary> /// Initializes the <see cref="WizardView" /> class. /// </summary> static WizardView() { DefaultStyleKeyProperty.OverrideMetadata(typeof(WizardView), new FrameworkPropertyMetadata(typeof(WizardView))); var widthMetadata = new FrameworkPropertyMetadata(640d, FrameworkPropertyMetadataOptions.AffectsMeasure) { CoerceValueCallback = WidthCoerceValueCallback }; var heightMetadata = new FrameworkPropertyMetadata(480d, FrameworkPropertyMetadataOptions.AffectsMeasure) { CoerceValueCallback = HeightCoerceValueCallback }; WidthProperty.AddOwner(typeof(WizardView), widthMetadata); HeightProperty.AddOwner(typeof(WizardView), heightMetadata); }