Cleanup ContentCropper
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user