|
| 1 | +<mah:MetroWindow x:Class="WeekendOffConfigurator.MainWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:local="clr-namespace:WeekendOffConfigurator" |
| 7 | + xmlns:mah="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" |
| 8 | + xmlns:mah1="http://metro.mahapps.com/winfx/xaml/controls" |
| 9 | + mc:Ignorable="d" |
| 10 | + TitleCharacterCasing="Normal" |
| 11 | + ResizeMode="NoResize" |
| 12 | + Title="WeekendOff Configurator" Height="350" Width="650" |
| 13 | + d:DataContext="{d:DesignInstance local:MainWindow}"> |
| 14 | + <StackPanel Orientation="Horizontal"> |
| 15 | + <Grid> |
| 16 | + <Grid.RowDefinitions> |
| 17 | + <RowDefinition Height="Auto"/> |
| 18 | + <RowDefinition Height="Auto"/> |
| 19 | + <RowDefinition Height="Auto"/> |
| 20 | + <RowDefinition Height="Auto"/> |
| 21 | + <RowDefinition Height="Auto"/> |
| 22 | + <RowDefinition Height="Auto"/> |
| 23 | + <RowDefinition Height="Auto"/> |
| 24 | + <RowDefinition Height="Auto"/> |
| 25 | + <RowDefinition Height="Auto"/> |
| 26 | + </Grid.RowDefinitions> |
| 27 | + <Grid.ColumnDefinitions> |
| 28 | + <ColumnDefinition Width="15"/> |
| 29 | + <ColumnDefinition Width="Auto"/> |
| 30 | + <ColumnDefinition Width="Auto"/> |
| 31 | + <ColumnDefinition Width="20"/> |
| 32 | + <ColumnDefinition Width="Auto"/> |
| 33 | + </Grid.ColumnDefinitions> |
| 34 | + |
| 35 | + <TextBlock Text="Monday" Grid.Row="0" Grid.Column="1" Margin="5,6,0,0" FontSize="16" /> |
| 36 | + <mah1:ToggleSwitch x:Name="CB_Monday" Grid.Row="0" Grid.Column="2" Margin="15,2,0,0"/> |
| 37 | + <TextBlock Text="Tuesday" Grid.Row="1" Grid.Column="1" Margin="5,6,0,0" FontSize="16" /> |
| 38 | + <mah1:ToggleSwitch x:Name="CB_Tuesday" Grid.Row="1" Grid.Column="2" Margin="15,2,0,0"/> |
| 39 | + <TextBlock Text="Wednesday" Grid.Row="2" Grid.Column="1" Margin="5,6,0,0" FontSize="16" /> |
| 40 | + <mah1:ToggleSwitch x:Name="CB_Wednesday" Grid.Row="2" Grid.Column="2" Margin="15,2,0,0"/> |
| 41 | + <TextBlock Text="Thursday" Grid.Row="3" Grid.Column="1" Margin="5,6,0,0" FontSize="16" /> |
| 42 | + <mah1:ToggleSwitch x:Name="CB_Thursday" Grid.Row="3" Grid.Column="2" Margin="15,2,0,0"/> |
| 43 | + <TextBlock Text="Friday" Grid.Row="4" Grid.Column="1" Margin="5,6,0,0" FontSize="16" /> |
| 44 | + <mah1:ToggleSwitch x:Name="CB_Friday" Grid.Row="4" Grid.Column="2" Margin="15,2,0,0"/> |
| 45 | + <TextBlock Text="Saturday" Grid.Row="5" Grid.Column="1" Margin="5,6,0,0" FontSize="16" /> |
| 46 | + <mah1:ToggleSwitch x:Name="CB_Saturday" Grid.Row="5" Grid.Column="2" Margin="15,2,0,0"/> |
| 47 | + <TextBlock Text="Sunday" Grid.Row="6" Grid.Column="1" Margin="5,6,0,0" FontSize="16" /> |
| 48 | + <mah1:ToggleSwitch x:Name="CB_Sunday" Grid.Row="6" Grid.Column="2" Margin="15,2,0,0"/> |
| 49 | + <Button Grid.Row="7" Grid.Column="1" FontSize="14" Click="SaveButtonBase_OnClick" Margin="5,20,0,0">Save</Button> |
| 50 | + </Grid> |
| 51 | + <StackPanel Orientation="Vertical"> |
| 52 | + <TextBlock Text="Processes to prevent to start" Margin="5,6,0,0" FontSize="16" /> |
| 53 | + <TextBox x:Name="TB_Process" Width="300" Height="200" AcceptsReturn="True"></TextBox> |
| 54 | + </StackPanel> |
| 55 | + </StackPanel> |
| 56 | +</mah:MetroWindow> |
0 commit comments