From f0b4654c736e30e52e40ba94139eaabcbb61509b Mon Sep 17 00:00:00 2001 From: Ionite Date: Sun, 20 Aug 2023 17:09:45 -0400 Subject: [PATCH] Region formatting --- .../Controls/AdvancedImageBox.axaml.cs | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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 ///