예제 #1
0
        static TickBar()
        {
            WidthProperty.OverrideDefaultValue <TickBar>(100);
            HeightProperty.OverrideDefaultValue <TickBar>(1);

            IsVisibleProperty.Changed.AddClassHandler <TickBar>((o, e) => OnIsVivibleChanged(o, e));
            PlacementProperty.Changed.AddClassHandler <TickBar>((o, e) => OnPlacementChanged(o, e));
            //AffectsRender<TickBar>(FillProperty, IsVisibleProperty, PlacementProperty);
            //AffectsArrange<TickBar>(IsVisibleProperty);
        }
예제 #2
0
 static DrawingIcon()
 {
     WidthProperty.OverrideDefaultValue <DrawingIcon>(16);
     HeightProperty.OverrideDefaultValue <DrawingIcon>(16);
 }