/// <summary> /// Draws the selection corner. /// </summary> public void DrawSelectionCorner(DualViewsDrawingModel.Point point) { RectangleF rectangle = new RectangleF(( float )point.X - ( float )Definitions.SELECTION_CORNER_RADIUS, ( float )point.Y - ( float )Definitions.SELECTION_CORNER_RADIUS, ( float )Definitions.SELECTION_CORNER_DOUBLE_RADIUS, ( float )Definitions.SELECTION_CORNER_DOUBLE_RADIUS); _graphics.DrawEllipse(Pens.Red, rectangle); _graphics.FillEllipse(Brushes.White, rectangle); }
/// <summary> /// Draws the selection corner. /// </summary> public void DrawSelectionCorner(DualViewsDrawingModel.Point point) { Windows.UI.Xaml.Shapes.Ellipse drawingPageCanvasEllipse = new Windows.UI.Xaml.Shapes.Ellipse(); drawingPageCanvasEllipse.Width = Definitions.SELECTION_CORNER_DOUBLE_RADIUS; drawingPageCanvasEllipse.Height = Definitions.SELECTION_CORNER_DOUBLE_RADIUS; drawingPageCanvasEllipse.Stroke = new SolidColorBrush(Colors.Red); drawingPageCanvasEllipse.Fill = new SolidColorBrush(Colors.White); _canvas.Children.Add(drawingPageCanvasEllipse); Canvas.SetLeft(drawingPageCanvasEllipse, point.X - Definitions.SELECTION_CORNER_RADIUS); Canvas.SetTop(drawingPageCanvasEllipse, point.Y - Definitions.SELECTION_CORNER_RADIUS); }