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); }
static DrawingIcon() { WidthProperty.OverrideDefaultValue <DrawingIcon>(16); HeightProperty.OverrideDefaultValue <DrawingIcon>(16); }