Skip to content

Commit

Permalink
Wpfui numberbox workaround (#376)
Browse files Browse the repository at this point in the history
* Remove incorrect atribute setting

* Apply workaround for ui:NumberBox control
  • Loading branch information
Kanuan authored Jul 28, 2024
1 parent 6951d25 commit d1f37e9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions ControlApp/Views/UserControls/DeviceSettingsEditor.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@
ClearButtonEnabled="False"
Maximum="5"
Minimum="{Binding MinHoldTime}"
Text="{Binding HoldTime}"
Value="{Binding HoldTime}" />
Value="{Binding HoldTime, UpdateSourceTrigger=PropertyChanged}" />
</DockPanel>
</DataTemplate>
<Style x:Key="SetGroupItem" TargetType="ContentControl">
Expand Down Expand Up @@ -403,15 +402,15 @@
ClipToBounds="True"
Maximum="142"
Minimum="0"
Value="{Binding LeftStickDeadZone}" />
Value="{Binding LeftStickDeadZone, UpdateSourceTrigger=PropertyChanged}" />
<ui:NumberBox
Grid.Row="1"
Grid.Column="2"
ClearButtonEnabled="False"
ClipToBounds="True"
Maximum="142"
Minimum="0"
Value="{Binding RightStickDeadZone}" />
Value="{Binding RightStickDeadZone, UpdateSourceTrigger=PropertyChanged}" />
<!-- Row 2: Invert X -->
<Label
Grid.Row="2"
Expand Down

0 comments on commit d1f37e9

Please sign in to comment.