Added some bounds to controls

This commit is contained in:
Travis Nickles 2019-12-25 02:15:01 -06:00
parent 1e148ba121
commit 69cda376b9
2 changed files with 16 additions and 9 deletions

View File

@ -25,12 +25,14 @@
<StackPanel Orientation="Horizontal" Margin="{StaticResource spaceMargin}">
<Label Content="Heavy" Width="50" />
<xctk:IntegerUpDown Value="{Binding HeavyRumble}" MinWidth="60" Margin="20,0,0,0" />
<xctk:IntegerUpDown Value="{Binding HeavyRumble}" MinWidth="60" Margin="20,0,0,0"
Minimum="0" Maximum="255" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="{StaticResource spaceMargin}">
<Label Content="Light" Width="50" />
<xctk:IntegerUpDown Value="{Binding LightRumble}" MinWidth="60" Margin="20,0,0,0" />
<xctk:IntegerUpDown Value="{Binding LightRumble}" MinWidth="60" Margin="20,0,0,0"
Minimum="0" Maximum="255" />
</StackPanel>
<StackPanel Orientation="Vertical">
@ -52,12 +54,14 @@
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="{StaticResource spaceMargin}">
<Label Content="Flash Rate"/>
<xctk:IntegerUpDown MinWidth="50" Value="{Binding FlashRate}" />
<xctk:IntegerUpDown MinWidth="50" Value="{Binding FlashRate}"
Minimum="0" Maximum="20" />
</StackPanel>
<StackPanel Orientation="Vertical">
<CheckBox Content="Change Mouse Sensitivity" IsChecked="{Binding UseMouseSens}"
Margin="{StaticResource spaceMargin}" />
<xctk:IntegerUpDown Value="{Binding MouseSens}" MinWidth="50" Height="20" />
<xctk:IntegerUpDown Value="{Binding MouseSens}" MinWidth="50" Height="20"
Minimum="0" Maximum="255" />
</StackPanel>
</StackPanel>
</StackPanel>

View File

@ -620,7 +620,8 @@
<ComboBoxItem Content="Flash at"/>
<ComboBoxItem Content="Pulse at"/>
</ComboBox>
<xctk:IntegerUpDown d:IsHidden="True" Value="{Binding FlashAt}" MinWidth="50" />
<xctk:IntegerUpDown d:IsHidden="True" Value="{Binding FlashAt}" MinWidth="50"
Minimum="0" Maximum="100" Increment="10" />
<Label Content="%" />
<Button x:Name="flashColorBtn" Width="20" Height="20" Background="{Binding FlashColor,FallbackValue=Blue}"
ToolTip="{lex:Loc Resources:FlashAtTip}" Click="FlashColorBtn_Click" />
@ -648,7 +649,7 @@
<Image Source="/DS4Windows;component/Resources/rainbow.png" />
</Button.Content>
</Button>
<xctk:IntegerUpDown MinWidth="30" Height="30" Minimum="0" Maximum="60" Margin="8,0,0,0"
<xctk:IntegerUpDown MinWidth="30" Height="30" Minimum="0" Maximum="60" Increment="1" Margin="8,0,0,0"
Value="{Binding Rainbow,FallbackValue=5}" IsEnabled="{Binding RainbowExists}" />
<Label Content="secs/cycle" Padding="0" Margin="8,0,0,0" VerticalContentAlignment="Center" />
<StackPanel Margin="8,0,0,0">
@ -769,7 +770,7 @@
<StackPanel Orientation="Horizontal" Margin="{StaticResource spaceMargin}">
<Label Content="Vertical Scale:" />
<xctk:IntegerUpDown d:IsHidden="True" MinWidth="50" Margin="8,0,0,0" Value="{Binding GyroVertScale}"
Minimum="0" Maximum="500" />
Minimum="0" Maximum="400" Increment="10" />
<Label Content="%" />
</StackPanel>
@ -872,7 +873,8 @@
<StackPanel Orientation="Horizontal" Margin="{StaticResource spaceMargin}">
<Label Content="Vertical Scale" />
<xctk:IntegerUpDown d:IsHidden="True" Margin="8,0,0,0" Value="{Binding GyroMouseStickVertScale}" MinWidth="60" />
<xctk:IntegerUpDown d:IsHidden="True" Margin="8,0,0,0" Value="{Binding GyroMouseStickVertScale}" MinWidth="60"
Minimum="0" Maximum="400" Increment="10" />
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="{StaticResource spaceMargin}">
@ -934,7 +936,8 @@
</StackPanel>
<StackPanel Orientation="Horizontal" Height="40" Margin="0,4,0,0">
<Label Content="Mouse Sensitivity" VerticalAlignment="Center" />
<xctk:IntegerUpDown d:IsHidden="True" MinWidth="50" Height="20" Value="25" Margin="10,0,0,0" />
<xctk:IntegerUpDown d:IsHidden="True" MinWidth="50" Height="20" Value="25"
Minimum="0" Maximum="255" Increment="1" Margin="10,0,0,0" />
</StackPanel>
<CheckBox Content="Mouse Acceleration" IsChecked="{Binding MouseAcceleration}" Margin="0,6,0,0" />
<CheckBox Content="Enable Touchpad Toggle" IsChecked="{Binding EnableTouchpadToggle}" Margin="0,6,0,0" />