-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
430 lines (387 loc) · 26 KB
/
Copy pathMainWindow.xaml
File metadata and controls
430 lines (387 loc) · 26 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
<Window x:Class="Auto_Clicker.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Auto Clicker Pro" Height="675" Width="485"
WindowStyle="None" AllowsTransparency="True" Background="Transparent"
ResizeMode="NoResize" WindowStartupLocation="CenterScreen"
Icon="assets/icon.ico" Topmost="{Binding IsChecked, ElementName=chkTopMost}"
KeyboardNavigation.TabNavigation="None"
FontFamily="Segoe UI" FontSize="12">
<Window.Resources>
<SolidColorBrush x:Key="ControlBgBrush" Color="#FFFFFF"/>
<SolidColorBrush x:Key="BorderDefaultBrush" Color="#D1D5DB"/>
<SolidColorBrush x:Key="TextPrimaryBrush" Color="#111827"/>
<SolidColorBrush x:Key="TextSecondaryBrush" Color="#6B7280"/>
<SolidColorBrush x:Key="CardBgBrush" Color="#FFFFFF"/>
<Style TargetType="TextBox">
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Padding" Value="5,4"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="BorderBrush" Value="#D1D5DB"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Foreground" Value="#111827"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="TextBox">
<Border Background="White" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="4">
<ScrollViewer x:Name="PART_ContentHost"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" Value="#F3F4F6"/>
<Setter Property="Foreground" Value="#9CA3AF"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="TitleBarButton" TargetType="Button">
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="Foreground" Value="#6B7280"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="PrimaryBtn" TargetType="Button">
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Background" Value="#2563EB"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#1D4ED8"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Background" Value="#93C5FD"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="DangerBtn" TargetType="Button">
<Setter Property="Background" Value="#E5E7EB"/>
<Setter Property="Foreground" Value="#9CA3AF"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="6">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsEnabled" Value="True">
<Setter Property="Background" Value="#EF4444"/>
<Setter Property="Foreground" Value="White"/>
</Trigger>
<MultiTrigger>
<MultiTrigger.Conditions>
<Condition Property="IsMouseOver" Value="True"/>
<Condition Property="IsEnabled" Value="True"/>
</MultiTrigger.Conditions>
<MultiTrigger.Setters>
<Setter Property="Background" Value="#DC2626"/>
</MultiTrigger.Setters>
</MultiTrigger>
</Style.Triggers>
</Style>
<Style x:Key="SecondaryBtn" TargetType="Button">
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Background" Value="#F3F4F6"/>
<Setter Property="Foreground" Value="#374151"/>
<Setter Property="FontWeight" Value="SemiBold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="BorderBrush" Value="#D1D5DB"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="6" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#E5E7EB"/>
</Trigger>
<Trigger Property="IsEnabled" Value="False">
<Setter Property="Opacity" Value="0.5"/>
<Setter Property="Cursor" Value="Arrow"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="InfoBtn" TargetType="Button">
<Setter Property="FocusVisualStyle" Value="{x:Null}"/>
<Setter Property="Background" Value="#E5E7EB"/>
<Setter Property="Foreground" Value="#374151"/>
<Setter Property="FontWeight" Value="Bold"/>
<Setter Property="Cursor" Value="Hand"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border Background="{TemplateBinding Background}" CornerRadius="10">
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#D1D5DB"/>
</Trigger>
</Style.Triggers>
</Style>
<ControlTemplate x:Key="ComboBoxToggleButton" TargetType="ToggleButton">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition />
<ColumnDefinition Width="30" />
</Grid.ColumnDefinitions>
<Border x:Name="Border" Grid.ColumnSpan="2" CornerRadius="4" Background="{DynamicResource ControlBgBrush}" BorderBrush="{DynamicResource BorderDefaultBrush}" BorderThickness="1" />
<Path x:Name="Arrow" Grid.Column="1" Fill="{DynamicResource TextSecondaryBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M0,0 L0,2 L4,6 L8,2 L8,0 L4,4 z" />
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter TargetName="Border" Property="Background" Value="#F9FAFB" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style TargetType="ComboBox" x:Key="ModernComboBox">
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}" />
<Setter Property="Background" Value="{DynamicResource ControlBgBrush}" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBox">
<Grid>
<ToggleButton Name="ToggleButton" Template="{StaticResource ComboBoxToggleButton}" Focusable="false" IsChecked="{Binding Path=IsDropDownOpen,Mode=TwoWay,RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press" />
<ContentPresenter Name="ContentSite" IsHitTestVisible="False" Content="{TemplateBinding SelectionBoxItem}" Margin="12,0,30,0" VerticalAlignment="Center" HorizontalAlignment="Left" />
<Popup Name="Popup" Placement="Bottom" IsOpen="{TemplateBinding IsDropDownOpen}" AllowsTransparency="True" Focusable="False" PopupAnimation="Slide">
<Grid Name="DropDown" SnapsToDevicePixels="True" MinWidth="{TemplateBinding ActualWidth}" MaxHeight="200">
<Border x:Name="DropDownBorder" Background="{DynamicResource CardBgBrush}" BorderThickness="1" BorderBrush="{DynamicResource BorderDefaultBrush}" CornerRadius="6" Margin="0,4,0,0">
<Border.Effect>
<DropShadowEffect ShadowDepth="2" BlurRadius="6" Opacity="0.15" Direction="270"/>
</Border.Effect>
<ScrollViewer Margin="0,4" SnapsToDevicePixels="True">
<StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained" />
</ScrollViewer>
</Border>
</Grid>
</Popup>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="ComboBoxItem" x:Key="ModernComboBoxItem">
<Setter Property="Foreground" Value="{DynamicResource TextPrimaryBrush}" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Padding" Value="12,8" />
<Setter Property="Cursor" Value="Hand" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ComboBoxItem">
<Border Name="Border" Padding="{TemplateBinding Padding}" Background="{TemplateBinding Background}">
<ContentPresenter />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="true">
<Setter TargetName="Border" Property="Background" Value="#F3F4F6" />
</Trigger>
<Trigger Property="IsSelected" Value="true">
<Setter TargetName="Border" Property="Background" Value="#2563EB" />
<Setter Property="Foreground" Value="White" />
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
<Border Background="#F0F2F5" CornerRadius="10" BorderBrush="#E5E7EB" BorderThickness="1">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="45"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" MouseLeftButtonDown="TitleBar_MouseDown" Background="Transparent">
<Grid Margin="15,0,15,0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<Image Source="assets/icon.ico" Width="30" Height="30" Margin="0,0,10,0"/>
<TextBlock Text="Auto Clicker Pro" FontWeight="Bold" FontSize="14" Foreground="#111827" VerticalAlignment="Center"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
<Button Content="—" Width="30" Height="30" Style="{StaticResource TitleBarButton}" Click="BtnMinimize_Click"/>
<Button Content="✕" Width="30" Height="30" Style="{StaticResource TitleBarButton}" Click="BtnClose_Click"/>
</StackPanel>
</Grid>
</Border>
<StackPanel Grid.Row="1" Margin="20,5,20,20">
<StackPanel IsEnabled="{Binding IsEnabled, ElementName=btnStart}">
<Border Background="White" CornerRadius="8" Padding="15" Margin="0,0,0,15">
<StackPanel>
<TextBlock Text="⏱️ Click Interval" FontSize="13" FontWeight="Bold" Foreground="#2563EB" Margin="0,0,0,12"/>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,10">
<TextBox x:Name="txtHours" Text="0" Width="40" TextAlignment="Center" PreviewMouseWheel="NumericTextBox_MouseWheel"/>
<TextBlock Text="hours" VerticalAlignment="Center" Margin="5,0,15,0" Foreground="#6B7280"/>
<TextBox x:Name="txtMins" Text="0" Width="40" TextAlignment="Center" PreviewMouseWheel="NumericTextBox_MouseWheel"/>
<TextBlock Text="mins" VerticalAlignment="Center" Margin="5,0,15,0" Foreground="#6B7280"/>
<TextBox x:Name="txtSecs" Text="0" Width="40" TextAlignment="Center" PreviewMouseWheel="NumericTextBox_MouseWheel"/>
<TextBlock Text="secs" VerticalAlignment="Center" Margin="5,0,15,0" Foreground="#6B7280"/>
<TextBox x:Name="txtMillisecs" Text="100" Width="50" TextAlignment="Center" PreviewMouseWheel="NumericTextBox_MouseWheel"/>
<TextBlock Text="ms" VerticalAlignment="Center" Margin="5,0,0,0" Foreground="#6B7280"/>
</StackPanel>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<CheckBox x:Name="chkRandomize" Content="Randomize Interval (Human-like)" Foreground="#374151" Cursor="Hand" Margin="0,0,20,0" VerticalAlignment="Center"/>
<TextBlock Text="Range: ±" VerticalAlignment="Center" Margin="0,0,5,0" Foreground="#6B7280"/>
<TextBox x:Name="txtRandomPercent" Text="20" Width="40" TextAlignment="Center" PreviewMouseWheel="NumericTextBox_MouseWheel" IsEnabled="{Binding IsChecked, ElementName=chkRandomize}"/>
<TextBlock Text="%" VerticalAlignment="Center" Margin="5,0,7,0" Foreground="#6B7280"/>
<Button Content="?" Width="20" Height="20" Style="{StaticResource InfoBtn}" Click="BtnInfo_Click" ToolTip="What does this mean?"/>
</StackPanel>
</StackPanel>
</Border>
<Border Background="White" CornerRadius="8" Padding="15" Margin="0,0,0,15">
<StackPanel>
<TextBlock Text="🎯 Cursor Position" FontSize="13" FontWeight="Bold" Foreground="#2563EB" Margin="0,0,0,12"/>
<StackPanel Orientation="Horizontal" VerticalAlignment="Center">
<RadioButton x:Name="rbCurrentLocation" Content="Current location" IsChecked="True" VerticalAlignment="Center" Margin="0,0,15,0" Foreground="#4B5563"/>
<RadioButton x:Name="rbPickLocation" VerticalAlignment="Center" Margin="0,0,5,0"/>
<Button Content="Pick Location" Width="95" Height="26"
Style="{StaticResource SecondaryBtn}" Margin="0,0,25,0"
Click="BtnPickLocation_Click"
IsEnabled="{Binding IsChecked, ElementName=rbPickLocation}"/>
<TextBlock Text="X :" VerticalAlignment="Center" Margin="0,0,5,0" Foreground="#4B5563" FontWeight="SemiBold"/>
<TextBox x:Name="txtPosX" Text="0" Width="50" Margin="0,0,15,0" TextAlignment="Center" IsEnabled="{Binding IsChecked, ElementName=rbPickLocation}"/>
<TextBlock Text="Y :" VerticalAlignment="Center" Margin="0,0,5,0" Foreground="#4B5563" FontWeight="SemiBold"/>
<TextBox x:Name="txtPosY" Text="0" Width="50" TextAlignment="Center" IsEnabled="{Binding IsChecked, ElementName=rbPickLocation}"/>
</StackPanel>
</StackPanel>
</Border>
<Border Background="White" CornerRadius="8" Padding="15" Margin="0,0,0,15">
<StackPanel>
<TextBlock Text="🎯 Target & Settings" FontSize="13" FontWeight="Bold" Foreground="#2563EB" Margin="0,0,0,12"/>
<TextBlock Text="Target Window:" Foreground="#4B5563" Margin="0,0,0,5"/>
<Grid Margin="0,0,0,15">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<ComboBox x:Name="cmbTargetWindow" Grid.Column="0" Height="28"
DisplayMemberPath="DisplayName" SelectedValuePath="Handle"
Margin="0,0,10,0" Cursor="Hand" Style="{StaticResource ModernComboBox}" ItemContainerStyle="{StaticResource ModernComboBoxItem}"/>
<Button x:Name="btnRefreshWindows" Content="🔄" Grid.Column="1" Width="30" Height="28"
Style="{StaticResource SecondaryBtn}" Click="BtnRefreshWindows_Click"
ToolTip="Refresh window list"/>
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0">
<StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,5,0,5">
<CheckBox x:Name="chkRunInBackground" Content="Run in background" VerticalAlignment="Center" Margin="0,0,7,0" Foreground="#4B5563"/>
<Button Content="?" Width="20" Height="20" Style="{StaticResource InfoBtn}" Click="BtnInfoBackground_Click" ToolTip="What does this mean?"/>
</StackPanel>
<CheckBox x:Name="chkTopMost" Content="Stay on top of other windows" Foreground="#4B5563" Cursor="Hand"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Bottom">
<TextBlock Text="Hotkey:" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="#4B5563"/>
<TextBox x:Name="txtHotkey" Text="F6" Width="60" Height="28"
TextAlignment="Center" FontWeight="Bold" Foreground="#2563EB"
IsReadOnly="True" Cursor="Hand"
PreviewKeyDown="TxtHotkey_PreviewKeyDown"
PreviewMouseLeftButtonDown="TxtHotkey_PreviewMouseLeftButtonDown"
LostFocus="TxtHotkey_LostFocus"
ToolTip="Click here and press any key to change hotkey"/>
<Button Content="?" Width="20" Height="20" Margin="8,0,0,0"
Style="{StaticResource InfoBtn}" Click="BtnInfoHotkey_Click"/>
</StackPanel>
</Grid>
</StackPanel>
</Border>
<Grid Margin="0,0,0,15">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<Border Grid.Column="0" Background="White" CornerRadius="8" Padding="15" Margin="0,0,7.5,0">
<StackPanel>
<TextBlock Text="⚙️ Click Options" FontSize="13" FontWeight="Bold" Foreground="#2563EB" Margin="0,0,0,12"/>
<Grid Margin="0,0,0,10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Button:" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="#4B5563"/>
<ComboBox x:Name="cmbMouseButton" Grid.Column="1" SelectedIndex="0" Height="28"
Style="{StaticResource ModernComboBox}" ItemContainerStyle="{StaticResource ModernComboBoxItem}">
<ComboBoxItem Content="Left"/>
<ComboBoxItem Content="Right"/>
<ComboBoxItem Content="Middle"/>
</ComboBox>
</Grid>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Type:" VerticalAlignment="Center" Margin="0,0,19,0" Foreground="#4B5563"/>
<ComboBox x:Name="cmbClickType" Grid.Column="1" SelectedIndex="0" Height="28"
Style="{StaticResource ModernComboBox}" ItemContainerStyle="{StaticResource ModernComboBoxItem}">
<ComboBoxItem Content="Single"/>
<ComboBoxItem Content="Double"/>
</ComboBox>
</Grid>
</StackPanel>
</Border>
<Border Grid.Column="1" Background="White" CornerRadius="8" Padding="15" Margin="7.5,0,0,0">
<StackPanel>
<TextBlock Text="🔄 Click Repeat" FontSize="13" FontWeight="Bold" Foreground="#2563EB" Margin="0,0,0,12"/>
<StackPanel Orientation="Horizontal" Margin="0,0,0,15">
<RadioButton x:Name="rbRepeatTimes" GroupName="RepeatGroup" Content="Repeat" VerticalAlignment="Center" Margin="0,0,10,0" Foreground="#4B5563"/>
<TextBox x:Name="txtRepeatTimes" Text="1" Width="55" TextAlignment="Center" PreviewMouseWheel="NumericTextBox_MouseWheel" IsEnabled="{Binding IsChecked, ElementName=rbRepeatTimes}"/>
<TextBlock Text="times" VerticalAlignment="Center" Margin="5,0,0,0" Foreground="#4B5563"/>
</StackPanel>
<RadioButton x:Name="rbRepeatUntilStopped" GroupName="RepeatGroup" Content="Repeat until stopped" IsChecked="True" Foreground="#4B5563"/>
</StackPanel>
</Border>
</Grid>
</StackPanel>
<Grid Height="45">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
<Button x:Name="btnStop" Content="STOP (F6)" Width="100" Height="40" Style="{StaticResource DangerBtn}" Margin="0,0,10,0" IsEnabled="False" Click="BtnStop_Click"/>
<Button x:Name="btnStart" Content="START (F6)" Width="120" Height="40" Style="{StaticResource PrimaryBtn}" Click="BtnStart_Click"/>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</Border>
</Window>