Ejemplo n.º 1
0
 static NotifyEllipse()
 {
     FillProperty.AddOwner(typeof(NotifyEllipse), new FrameworkPropertyMetadata(
                               (o, e) =>
     {
         if (e.NewValue != e.OldValue)
         {
             ((NotifyEllipse)o).RaiseEvent(new RoutedEventArgs(FillChangedEvent));
         }
     }));
 }
Ejemplo n.º 2
0
        static ViewportPolygon()
        {
            Type type = typeof(ViewportPolygon);

            FillProperty.AddOwner(type, new FrameworkPropertyMetadata(Brushes.Coral));
        }