Beispiel #1
0
 private void UpdateRectangle(Rectangle rectangle)
 {
     rectangle.Width  = Bounds.Width;
     rectangle.Height = Bounds.Height;
     rectangle.Fill   = Brush;
     if (Pen != null)
     {
         rectangle.SetPen(Pen);
     }
     else
     {
         rectangle.Stroke = null;
     }
 }