diff --git a/StabilityMatrix.Avalonia/Controls/AdvancedImageBox.axaml.cs b/StabilityMatrix.Avalonia/Controls/AdvancedImageBox.axaml.cs index d70471b6..e6390ed9 100644 --- a/StabilityMatrix.Avalonia/Controls/AdvancedImageBox.axaml.cs +++ b/StabilityMatrix.Avalonia/Controls/AdvancedImageBox.axaml.cs @@ -40,13 +40,6 @@ namespace StabilityMatrix.Avalonia.Controls; [SuppressMessage("ReSharper", "MemberCanBePrivate.Global")] public class AdvancedImageBox : TemplatedControl { - private static readonly Rect EmptyRect = new(); - - private static bool IsRectEmpty(Rect rect) - { - return rect == EmptyRect; - } - #region Bindable Base /// /// Multicast event for property change notifications. @@ -1893,6 +1886,19 @@ public class AdvancedImageBox : TemplatedControl #endregion #region Utility methods + /// + /// Determines whether the specified rectangle is empty + /// + private static bool IsRectEmpty(Rect rect) + { + return rect == EmptyRect; + } + + /// + /// Static empty rectangle + /// + private static readonly Rect EmptyRect = new(); + /// /// Determines whether the specified point is located within the image view port ///