Cleanup ContentCropper

This commit is contained in:
TheXamlGuy
2024-10-11 13:46:26 +01:00
parent c7d2c0efd4
commit cecf514140
@@ -69,6 +69,7 @@ public class ContentCropper : ContentControl
get => GetValue(ScaleSizeProperty);
set => SetValue(ScaleSizeProperty, value);
}
protected override void OnApplyTemplate(TemplateAppliedEventArgs args)
{
base.OnApplyTemplate(args);
@@ -253,8 +254,6 @@ public class ContentCropper : ContentControl
UpdateCropRatios();
}
private void OnThumbDragDelta(object? sender, VectorEventArgs args)
{
if (canvas is null || border is null || sender is not Thumb thumb)