static NotifyEllipse() { FillProperty.AddOwner(typeof(NotifyEllipse), new FrameworkPropertyMetadata( (o, e) => { if (e.NewValue != e.OldValue) { ((NotifyEllipse)o).RaiseEvent(new RoutedEventArgs(FillChangedEvent)); } })); }
static ViewportPolygon() { Type type = typeof(ViewportPolygon); FillProperty.AddOwner(type, new FrameworkPropertyMetadata(Brushes.Coral)); }