|
@@ -2,13 +2,14 @@
|
|
using System.Windows.Controls;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media;
|
|
using System.Windows.Media.Animation;
|
|
using System.Windows.Media.Animation;
|
|
|
|
+using PixiEditor.DrawingApi.Core.Surface.Vector;
|
|
|
|
|
|
namespace PixiEditor.Views.UserControls;
|
|
namespace PixiEditor.Views.UserControls;
|
|
#nullable enable
|
|
#nullable enable
|
|
internal class SelectionOverlay : Control
|
|
internal class SelectionOverlay : Control
|
|
{
|
|
{
|
|
public static readonly DependencyProperty PathProperty =
|
|
public static readonly DependencyProperty PathProperty =
|
|
- DependencyProperty.Register(nameof(Path), typeof(SKPath), typeof(SelectionOverlay),
|
|
|
|
|
|
+ DependencyProperty.Register(nameof(Path), typeof(VectorPath), typeof(SelectionOverlay),
|
|
new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
|
|
new FrameworkPropertyMetadata(null, FrameworkPropertyMetadataOptions.AffectsRender));
|
|
|
|
|
|
public static readonly DependencyProperty ZoomboxScaleProperty =
|
|
public static readonly DependencyProperty ZoomboxScaleProperty =
|
|
@@ -29,9 +30,9 @@ internal class SelectionOverlay : Control
|
|
set => SetValue(ZoomboxScaleProperty, value);
|
|
set => SetValue(ZoomboxScaleProperty, value);
|
|
}
|
|
}
|
|
|
|
|
|
- public SKPath? Path
|
|
|
|
|
|
+ public VectorPath? Path
|
|
{
|
|
{
|
|
- get => (SKPath?)GetValue(PathProperty);
|
|
|
|
|
|
+ get => (VectorPath?)GetValue(PathProperty);
|
|
set => SetValue(PathProperty, value);
|
|
set => SetValue(PathProperty, value);
|
|
}
|
|
}
|
|
|
|
|