Cleanup ContentCropper
This commit is contained in:
@@ -69,6 +69,7 @@ public class ContentCropper : ContentControl
|
|||||||
get => GetValue(ScaleSizeProperty);
|
get => GetValue(ScaleSizeProperty);
|
||||||
set => SetValue(ScaleSizeProperty, value);
|
set => SetValue(ScaleSizeProperty, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnApplyTemplate(TemplateAppliedEventArgs args)
|
protected override void OnApplyTemplate(TemplateAppliedEventArgs args)
|
||||||
{
|
{
|
||||||
base.OnApplyTemplate(args);
|
base.OnApplyTemplate(args);
|
||||||
@@ -253,8 +254,6 @@ public class ContentCropper : ContentControl
|
|||||||
UpdateCropRatios();
|
UpdateCropRatios();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private void OnThumbDragDelta(object? sender, VectorEventArgs args)
|
private void OnThumbDragDelta(object? sender, VectorEventArgs args)
|
||||||
{
|
{
|
||||||
if (canvas is null || border is null || sender is not Thumb thumb)
|
if (canvas is null || border is null || sender is not Thumb thumb)
|
||||||
|
|||||||
Reference in New Issue
Block a user