diff --git a/demo/Ursa.Demo/Pages/NumericUpDownDemo.axaml b/demo/Ursa.Demo/Pages/NumericUpDownDemo.axaml
index 5697bc3..379ac2d 100644
--- a/demo/Ursa.Demo/Pages/NumericUpDownDemo.axaml
+++ b/demo/Ursa.Demo/Pages/NumericUpDownDemo.axaml
@@ -21,6 +21,6 @@
-
+
diff --git a/src/Ursa.Themes.Semi/Controls/NumericUpDown.axaml b/src/Ursa.Themes.Semi/Controls/NumericUpDown.axaml
index ad35f14..aeb4765 100644
--- a/src/Ursa.Themes.Semi/Controls/NumericUpDown.axaml
+++ b/src/Ursa.Themes.Semi/Controls/NumericUpDown.axaml
@@ -38,7 +38,7 @@
VerticalAlignment="Stretch"
Background="Transparent"
Cursor="SizeAll"
- IsVisible="{TemplateBinding TextEditable,
+ IsVisible="{TemplateBinding IsTextEditable,
Converter={x:Static BoolConverters.Not}}" />
diff --git a/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs b/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs
index d82d6bf..2d90ede 100644
--- a/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs
+++ b/src/Ursa/Controls/NumericUpDown/NumericUpDownBase.cs
@@ -27,13 +27,13 @@ public abstract class NumericUpDown : TemplatedControl
private Point? _point;
protected internal bool _updateFromTextInput;
- public static readonly StyledProperty TextEditableProperty = AvaloniaProperty.Register(
- nameof(TextEditable), defaultValue: true);
+ public static readonly StyledProperty IsTextEditableProperty = AvaloniaProperty.Register(
+ nameof(IsTextEditable), defaultValue: true);
- public bool TextEditable
+ public bool IsTextEditable
{
- get => GetValue(TextEditableProperty);
- set => SetValue(TextEditableProperty, value);
+ get => GetValue(IsTextEditableProperty);
+ set => SetValue(IsTextEditableProperty, value);
}
public static readonly StyledProperty IsReadOnlyProperty = AvaloniaProperty.Register(
@@ -207,7 +207,7 @@ public abstract class NumericUpDown : TemplatedControl
private void OnDragPanelPointerMoved(object sender, PointerEventArgs e)
{
- if (TextEditable) return;
+ if (IsTextEditable) return;
if(!e.GetCurrentPoint(this).Properties.IsLeftButtonPressed) return;
var point = e.GetPosition(this);
var delta = point - _point;