-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSettingWindow.xaml
71 lines (63 loc) · 3.12 KB
/
SettingWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<Window x:Class="PocketTDPControl.SettingWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:PocketTDPControl" d:DataContext="{d:DesignInstance Type=local:ViewModel}"
mc:Ignorable="d"
ShowInTaskbar="False"
BorderBrush="Black" BorderThickness="1"
AllowsTransparency="False" WindowStyle="None" WindowStartupLocation="CenterOwner"
ResizeMode="NoResize"
Width="300"
Height="250"
Title="Setting">
<Window.Resources>
<Style TargetType="{x:Type GroupBox}">
<Setter Property="Margin" Value="5"/>
<Setter Property="Width" Value="Auto"/>
<Setter Property="Height" Value="Auto"/>
<Setter Property="FontSize" Value="10"/>
<Setter Property="Padding" Value="2"/>
<Setter Property="VerticalAlignment" Value="Stretch"/>
<Setter Property="HorizontalAlignment" Value="Stretch"/>
</Style>
<Style TargetType="{x:Type StackPanel}">
<Setter Property="Margin" Value="5"/>
<Setter Property="Width" Value="Auto"/>
<Setter Property="Height" Value="Auto"/>
<Setter Property="VerticalAlignment" Value="Stretch"/>
<Setter Property="HorizontalAlignment" Value="Stretch"/>
</Style>
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="20" />
</Grid.RowDefinitions>
<StackPanel Orientation="Vertical" Grid.Row="0" Grid.Column="0">
<GroupBox Header="Set Min and Max TDP">
<StackPanel Orientation="Horizontal" Margin="0" HorizontalAlignment="Center">
<GroupBox Header="Min" Padding="0" Margin="0">
<TextBox Width="50" InputMethod.IsInputMethodEnabled="False"
Text="{Binding MinTDP, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</GroupBox>
<GroupBox Header="Max" Padding="0" Margin="0">
<TextBox Width="50" InputMethod.IsInputMethodEnabled="False"
Text="{Binding MaxTDP, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
</GroupBox>
</StackPanel>
</GroupBox>
<GroupBox Header="Apply Loopback Exampt for Gamebar Widget">
<Button Content="Apply" FontSize="10" Click="LoopbackExamptButton_Click" />
</GroupBox>
<GroupBox Header="Connectivity to Gamebar Widget Status">
<TextBlock Text="Connected." />
</GroupBox>
</StackPanel>
<Button Content="Close" Grid.Row="1" Grid.Column="0" Click="CloseButton_Click" />
</Grid>
</Window>