diff --git a/src/Artemis.Core/MVVM/CorePropertyChanged.cs b/src/Artemis.Core/MVVM/CorePropertyChanged.cs index 69aeef147..bcd1e0e69 100644 --- a/src/Artemis.Core/MVVM/CorePropertyChanged.cs +++ b/src/Artemis.Core/MVVM/CorePropertyChanged.cs @@ -21,7 +21,7 @@ namespace Artemis.Core #region Methods /// - /// Checks if the property already matches the desirec value or needs to be updated. + /// Checks if the property already matches the desired value or needs to be updated. /// /// Type of the property. /// Reference to the backing-filed. diff --git a/src/Artemis.UI.Shared/Controls/DraggableNumberBox.axaml.cs b/src/Artemis.UI.Shared/Controls/DraggableNumberBox.axaml.cs index 3df5ab087..6f83c0e8b 100644 --- a/src/Artemis.UI.Shared/Controls/DraggableNumberBox.axaml.cs +++ b/src/Artemis.UI.Shared/Controls/DraggableNumberBox.axaml.cs @@ -24,12 +24,12 @@ public class DraggableNumberBox : UserControl /// /// Defines the property. /// - public static readonly StyledProperty MinimumProperty = AvaloniaProperty.Register(nameof(Minimum), double.MinValue); + public static readonly StyledProperty MinimumProperty = AvaloniaProperty.Register(nameof(Minimum)); /// /// Defines the property. /// - public static readonly StyledProperty MaximumProperty = AvaloniaProperty.Register(nameof(Maximum), double.MaxValue); + public static readonly StyledProperty MaximumProperty = AvaloniaProperty.Register(nameof(Maximum)); /// /// Defines the property. diff --git a/src/Artemis.UI.Shared/Services/PropertyInput/PropertyInputViewModel.cs b/src/Artemis.UI.Shared/Services/PropertyInput/PropertyInputViewModel.cs index c7f62eed5..f59d9de87 100644 --- a/src/Artemis.UI.Shared/Services/PropertyInput/PropertyInputViewModel.cs +++ b/src/Artemis.UI.Shared/Services/PropertyInput/PropertyInputViewModel.cs @@ -95,6 +95,9 @@ public abstract class PropertyInputViewModel : PropertyInputViewModel get => _inputValue; set { + if (Equals(_inputValue, value)) + return; + this.RaiseAndSetIfChanged(ref _inputValue, value); ApplyInputValue(); }