|
7 | 7 | xmlns:tb="http://www.hardcodet.net/taskbar" |
8 | 8 | Title="Background Terminal" |
9 | 9 | Width="400" |
10 | | - Height="230" |
| 10 | + Height="340" |
11 | 11 | AllowsTransparency="True" |
12 | 12 | Background="Transparent" |
13 | 13 | Closed="MainWindow_Closed" |
|
53 | 53 | </Setter> |
54 | 54 | </Style> |
55 | 55 |
|
56 | | - <Style x:Key="KeyButton" TargetType="Button"> |
| 56 | + <Style x:Key="StandardButton1" TargetType="Button"> |
57 | 57 | <Setter Property="Template"> |
58 | 58 | <Setter.Value> |
59 | 59 | <ControlTemplate TargetType="Button"> |
|
178 | 178 | <RowDefinition Height="30" /> |
179 | 179 | <RowDefinition Height="30" /> |
180 | 180 | <RowDefinition Height="30" /> |
| 181 | + <RowDefinition Height="10" /> |
| 182 | + <RowDefinition Height="100" /> |
181 | 183 | <RowDefinition Height="30" /> |
182 | 184 | </Grid.RowDefinitions> |
183 | | - <Border Grid.RowSpan="5" Background="#F5F5F5" /> |
| 185 | + <Border Grid.RowSpan="7" Background="#F5F5F5" /> |
184 | 186 | <Grid Grid.Row="0" VerticalAlignment="Center"> |
185 | 187 | <Grid.ColumnDefinitions> |
186 | 188 | <ColumnDefinition Width="1*" /> |
|
204 | 206 | Click="Key1Button_Click" |
205 | 207 | FontFamily="Yu Gothic UI Light" |
206 | 208 | FontSize="10" |
207 | | - Style="{StaticResource KeyButton}" /> |
| 209 | + Style="{StaticResource StandardButton1}" /> |
208 | 210 | <Label |
209 | 211 | Grid.Column="1" |
210 | 212 | Margin="0" |
|
220 | 222 | Click="Key2Button_Click" |
221 | 223 | FontFamily="Yu Gothic UI Light" |
222 | 224 | FontSize="10" |
223 | | - Style="{StaticResource KeyButton}" /> |
| 225 | + Style="{StaticResource StandardButton1}" /> |
224 | 226 | </Grid> |
225 | 227 | </Grid> |
226 | 228 | <Grid Grid.Row="1"> |
|
344 | 346 | </Grid> |
345 | 347 | </Grid> |
346 | 348 | <Grid Grid.Row="5"> |
| 349 | + <Border |
| 350 | + Height="1" |
| 351 | + Margin="10,0,10,0" |
| 352 | + BorderBrush="Gray" |
| 353 | + BorderThickness="1" /> |
| 354 | + </Grid> |
| 355 | + <Grid Grid.Row="6"> |
| 356 | + <Grid.RowDefinitions> |
| 357 | + <RowDefinition Height="30" /> |
| 358 | + <RowDefinition Height="1*" /> |
| 359 | + </Grid.RowDefinitions> |
| 360 | + <Grid.ColumnDefinitions> |
| 361 | + <ColumnDefinition Width="1*" /> |
| 362 | + <ColumnDefinition Width="1*" /> |
| 363 | + </Grid.ColumnDefinitions> |
| 364 | + <Label |
| 365 | + Grid.Row="0" |
| 366 | + HorizontalAlignment="Center" |
| 367 | + Content="Newline Triggers" |
| 368 | + FontFamily="Yu Gothic UI Light" /> |
| 369 | + <Grid Grid.Row="0" Grid.Column="1"> |
| 370 | + <Grid.ColumnDefinitions> |
| 371 | + <ColumnDefinition Width="1*" /> |
| 372 | + <ColumnDefinition Width="15" /> |
| 373 | + <ColumnDefinition Width="1*" /> |
| 374 | + </Grid.ColumnDefinitions> |
| 375 | + <Button |
| 376 | + Margin="10,5" |
| 377 | + Click="AddNewlineTriggerButton_Click" |
| 378 | + Content="Add" |
| 379 | + FontFamily="Yu Gothic UI Light" |
| 380 | + FontSize="10" |
| 381 | + Style="{StaticResource StandardButton1}" /> |
| 382 | + <Button |
| 383 | + Grid.Column="2" |
| 384 | + Margin="10,5" |
| 385 | + Click="DeleteNewlineTriggerButton_Click" |
| 386 | + Content="Delete" |
| 387 | + FontFamily="Yu Gothic UI Light" |
| 388 | + FontSize="10" |
| 389 | + Style="{StaticResource StandardButton1}" /> |
| 390 | + </Grid> |
| 391 | + <ListBox |
| 392 | + x:Name="NewlineTrigger_ListBox" |
| 393 | + Grid.Row="1" |
| 394 | + Grid.ColumnSpan="2" |
| 395 | + HorizontalContentAlignment="Stretch" |
| 396 | + Background="Transparent" |
| 397 | + BorderThickness="0" |
| 398 | + ItemsSource="{Binding NewlineTriggers}" |
| 399 | + ScrollViewer.HorizontalScrollBarVisibility="Disabled"> |
| 400 | + <ListBox.ItemTemplate> |
| 401 | + <DataTemplate> |
| 402 | + <Grid Height="25"> |
| 403 | + <Grid.ColumnDefinitions> |
| 404 | + <ColumnDefinition Width="1*" /> |
| 405 | + <ColumnDefinition Width="1*" /> |
| 406 | + <ColumnDefinition Width="1*" /> |
| 407 | + </Grid.ColumnDefinitions> |
| 408 | + <TextBox |
| 409 | + Grid.Column="0" |
| 410 | + Margin="3" |
| 411 | + VerticalContentAlignment="Center" |
| 412 | + FontSize="10" |
| 413 | + PreviewMouseDown="NewlineTriggerTextBox_PreviewMouseDown" |
| 414 | + Text="{Binding TriggerCommand}" /> |
| 415 | + <TextBox |
| 416 | + Grid.Column="1" |
| 417 | + Margin="3" |
| 418 | + VerticalContentAlignment="Center" |
| 419 | + FontSize="10" |
| 420 | + PreviewMouseDown="NewlineTriggerTextBox_PreviewMouseDown" |
| 421 | + Text="{Binding ExitCommand}" /> |
| 422 | + <TextBox |
| 423 | + Grid.Column="2" |
| 424 | + Margin="3" |
| 425 | + VerticalContentAlignment="Center" |
| 426 | + FontSize="10" |
| 427 | + PreviewMouseDown="NewlineTriggerTextBox_PreviewMouseDown" |
| 428 | + Text="{Binding NewlineString}" /> |
| 429 | + </Grid> |
| 430 | + </DataTemplate> |
| 431 | + </ListBox.ItemTemplate> |
| 432 | + </ListBox> |
| 433 | + </Grid> |
| 434 | + <Grid Grid.Row="7"> |
347 | 435 | <Grid.ColumnDefinitions> |
348 | 436 | <ColumnDefinition Width="1*" /> |
349 | 437 | <ColumnDefinition Width="1" /> |
|
0 commit comments