diff --git a/demo/Ursa.Demo/Pages/NumericUpDownDemo.axaml b/demo/Ursa.Demo/Pages/NumericUpDownDemo.axaml index 753a232..77b0def 100644 --- a/demo/Ursa.Demo/Pages/NumericUpDownDemo.axaml +++ b/demo/Ursa.Demo/Pages/NumericUpDownDemo.axaml @@ -5,6 +5,9 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:u="https://irihi.tech/ursa" + xmlns:vm="using:Ursa.Demo.ViewModels" + x:DataType="vm:NumericUpDownDemoViewModel" + x:CompileBindings="True" d:DesignHeight="450" d:DesignWidth="800" mc:Ignorable="d"> diff --git a/src/Ursa.Themes.Semi/Controls/NumericUpDown.axaml b/src/Ursa.Themes.Semi/Controls/NumericUpDown.axaml index d15bc7c..ba5141d 100644 --- a/src/Ursa.Themes.Semi/Controls/NumericUpDown.axaml +++ b/src/Ursa.Themes.Semi/Controls/NumericUpDown.axaml @@ -52,7 +52,6 @@ FontSize="{TemplateBinding FontSize}" Foreground="{TemplateBinding Foreground}" InnerLeftContent="{TemplateBinding InnerLeftContent}" - IsReadOnly="{TemplateBinding IsReadOnly}" TextWrapping="NoWrap" Theme="{DynamicResource NonErrorTextBox}" Watermark="{TemplateBinding Watermark}" /> @@ -61,8 +60,7 @@ HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Background="Transparent" - Cursor="SizeAll" - IsVisible="{TemplateBinding AllowDrag}" /> + Cursor="SizeAll"/>