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

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