Ejemplo n.º 1
0
 protected override void OnRender(DrawingContext drawingContext)
 {
     base.OnRender(drawingContext);
     Axises.Height = ActualHeight;
     Axises.Width  = ActualWidth;
     Axises.InvalidateVisual();
     MyCanvas.InvalidateVisual();
     MyCanvas.Children.Add(new Rectangle {
         Width = ActualWidth, Height = ActualHeight, Fill = new SolidColorBrush(Colors.Transparent)
     });
     Drawer.Draw();
     Console.WriteLine("OnRender");
 }