|
6 | 6 | xmlns:local="clr-namespace:ChuniVController" |
7 | 7 | mc:Ignorable="d" |
8 | 8 | Loaded="OnLoad" |
9 | | - Title="ChuniController" Height="450" Width="800" Topmost="True" ShowActivated="False" ResizeMode="NoResize" SizeToContent="WidthAndHeight"> |
| 9 | + Title="ChuniController" Height="450" Width="1000" Topmost="True" ShowActivated="False" ResizeMode="NoResize" SizeToContent="WidthAndHeight" Opacity="{Binding Value, ElementName=OpacitySlider}" AllowsTransparency="True" WindowStyle="None" BorderBrush="Black" BorderThickness="2" MouseDown="DoMove"> |
10 | 10 | <Grid> |
11 | 11 |
|
12 | 12 | <local:TouchPad x:Name="Air" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" idleColor="#ffffff" activeColor="#000000" keyCode="0x20" /> |
|
28 | 28 | <local:TouchPad x:Name="Key15" HorizontalAlignment="Left" VerticalAlignment="Top" idleColor="#ffffff" activeColor="#000000" keyCode="0x4F" /> |
29 | 29 | <local:TouchPad x:Name="Key16" HorizontalAlignment="Left" VerticalAlignment="Top" idleColor="#ffffff" activeColor="#000000" keyCode="0x50" /> |
30 | 30 |
|
31 | | - <Label Content="Key width" HorizontalAlignment="Left" Margin="1" VerticalAlignment="Bottom"/> |
32 | | - <TextBox x:Name="KeyWidth" HorizontalAlignment="Left" Margin="70,0,0,5" Text="120" VerticalAlignment="Bottom" Width="60" MouseEnter="SetAllowFocus" MouseLeave="SetDenyFocus" /> |
33 | | - <Label Content="Key height" HorizontalAlignment="Left" Margin="134,1,1,1" VerticalAlignment="Bottom"/> |
34 | | - <TextBox x:Name="KeyHeight" HorizontalAlignment="Left" Margin="207,0,0,5" Text="250" VerticalAlignment="Bottom" Width="60" MouseEnter="SetAllowFocus" MouseLeave="SetDenyFocus" /> |
35 | | - <Label Content="Air sensor height" HorizontalAlignment="Left" Margin="270,1,1,1" VerticalAlignment="Bottom"/> |
36 | | - <TextBox x:Name="AirHeight" HorizontalAlignment="Left" Margin="378,0,0,5" Text="300" VerticalAlignment="Bottom" Width="60" MouseEnter="SetAllowFocus" MouseLeave="SetDenyFocus" /> |
37 | | - <Button Content="Apply" HorizontalAlignment="Left" Margin="450,0,0,5" VerticalAlignment="Bottom" Width="75" Click="DoApply" MouseEnter="SetAllowFocus" MouseLeave="SetDenyFocus" /> |
38 | | - <CheckBox x:Name="AllowMouse" Content="Allow Mouse" HorizontalAlignment="Right" Margin="10" VerticalAlignment="Bottom" Checked="SetAllowMouse" Unchecked="UnsetAllowMouse" /> |
| 31 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="1" MouseEnter="SetAllowFocus" MouseLeave="SetDenyFocus" > |
| 32 | + <Label Content="Key width:" /> |
| 33 | + <TextBox x:Name="KeyWidth" Text="120" Width="60" MouseEnter="SetAllowFocus" MouseLeave="SetDenyFocus" Height="17" /> |
| 34 | + <Label Margin="3,0,0,0" Content="Key height:" HorizontalAlignment="Left" /> |
| 35 | + <TextBox x:Name="KeyHeight" HorizontalAlignment="Left" Text="250" Width="60" Height="17" /> |
| 36 | + <Label Margin="3,0,0,0" Content="Sensor height:" /> |
| 37 | + <TextBox x:Name="AirHeight" Text="300" Margin="3,0,0,0" Width="60" Height="17" /> |
| 38 | + <Button Margin="3" Content="Apply" HorizontalAlignment="Left" Width="75" Click="DoApply" IsDefault="True" /> |
| 39 | + <Separator Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" /> |
| 40 | + <Label Content="Opacity" /> |
| 41 | + <Slider Margin="3" x:Name="OpacitySlider" Width="100" Maximum="1" Minimum="0.1" Value="1" TickFrequency="0.01" SmallChange="0.01" LargeChange="0.1"/> |
| 42 | + <CheckBox Margin="3" Content="Allow Mouse" Checked="SetAllowMouse" Unchecked="UnsetAllowMouse" Height="17" /> |
| 43 | + <CheckBox Margin="3" Content="Lock Window" Checked="SetLockWindow" Unchecked="UnsetLockWindow" Height="17" /> |
| 44 | + </StackPanel> |
| 45 | + |
| 46 | + <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="1" MouseEnter="SetAllowFocus" MouseLeave="SetDenyFocus" > |
| 47 | + <Button Margin="3" Content="Exit" Width="75" Click="DoExit" IsCancel="True" /> |
| 48 | + </StackPanel> |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
39 | 53 | </Grid> |
40 | 54 | </Window> |
0 commit comments