예제 #1
0
    public override object Copy(IDictionary <object, object>?shared)
    {
        var copy = new PathSizeViewModel(ServiceProvider)
        {
            Width  = _width,
            Height = _height
        };

        return(copy);
    }
예제 #2
0
 public void ArcTo(PointShapeViewModel point, PathSizeViewModel size, double rotationAngle = 0.0, bool isLargeArc = false, SweepDirection sweepDirection = SweepDirection.Clockwise)
 {
     if (_currentFigure is not null)
     {
         var segment = _viewModelFactory.CreateArcSegment(
             point,
             size,
             rotationAngle,
             isLargeArc,
             sweepDirection);
         _currentFigure.Segments = _currentFigure.Segments.Add(segment);
     }
 }