|
|
@@ -16,10 +16,10 @@ namespace ControlCatalog.Pages
|
|
|
private Point _cursorPoint;
|
|
|
|
|
|
|
|
|
- public StyledProperty<double> ScaleProperty = AvaloniaProperty.Register<CustomDrawingExampleControl, double>(nameof(Scale), 1.0d);
|
|
|
+ public static readonly StyledProperty<double> ScaleProperty = AvaloniaProperty.Register<CustomDrawingExampleControl, double>(nameof(Scale), 1.0d);
|
|
|
public double Scale { get => GetValue(ScaleProperty); set => SetValue(ScaleProperty, value); }
|
|
|
|
|
|
- public StyledProperty<double> RotationProperty = AvaloniaProperty.Register<CustomDrawingExampleControl, double>(nameof(Rotation));
|
|
|
+ public static readonly StyledProperty<double> RotationProperty = AvaloniaProperty.Register<CustomDrawingExampleControl, double>(nameof(Rotation));
|
|
|
/// <summary>
|
|
|
/// Rotation, measured in Radians!
|
|
|
/// </summary>
|
|
|
@@ -33,10 +33,10 @@ namespace ControlCatalog.Pages
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public StyledProperty<double> ViewportCenterYProperty = AvaloniaProperty.Register<CustomDrawingExampleControl, double>(nameof(ViewportCenterY), 0.0d);
|
|
|
+ public static readonly StyledProperty<double> ViewportCenterYProperty = AvaloniaProperty.Register<CustomDrawingExampleControl, double>(nameof(ViewportCenterY), 0.0d);
|
|
|
public double ViewportCenterY { get => GetValue(ViewportCenterYProperty); set => SetValue(ViewportCenterYProperty, value); }
|
|
|
|
|
|
- public StyledProperty<double> ViewportCenterXProperty = AvaloniaProperty.Register<CustomDrawingExampleControl, double>(nameof(ViewportCenterX), 0.0d);
|
|
|
+ public static readonly StyledProperty<double> ViewportCenterXProperty = AvaloniaProperty.Register<CustomDrawingExampleControl, double>(nameof(ViewportCenterX), 0.0d);
|
|
|
public double ViewportCenterX { get => GetValue(ViewportCenterXProperty); set => SetValue(ViewportCenterXProperty, value); }
|
|
|
|
|
|
private IPen _pen;
|