static VisibleRowDefinition()
 {
     HeightProperty.AddOwner(typeof(VisibleRowDefinition),
                             new FrameworkPropertyMetadata(HeightProperty.DefaultMetadata.DefaultValue, OnHeightChanged));
     MinHeightProperty.AddOwner(typeof(VisibleRowDefinition),
                                new FrameworkPropertyMetadata(MinHeightProperty.DefaultMetadata.DefaultValue, OnMinHeightChanged));
     MaxHeightProperty.AddOwner(typeof(VisibleRowDefinition),
                                new FrameworkPropertyMetadata(MaxHeightProperty.DefaultMetadata.DefaultValue, OnMaxHeightChanged));
 }
예제 #2
0
        /// <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);
        }