|
| 1 | +<UserControl x:Class="VexTrack.MVVM.View.Popups.SeasonEndConfirmationPopup" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:local="clr-namespace:VexTrack.MVVM.View.Popups" |
| 7 | + mc:Ignorable="d" |
| 8 | + d:DesignHeight="812" d:DesignWidth="872"> |
| 9 | + |
| 10 | + <Grid Height="Auto" |
| 11 | + Width="640" |
| 12 | + VerticalAlignment="Center"> |
| 13 | + <Grid.RowDefinitions> |
| 14 | + <RowDefinition Height="Auto"/> |
| 15 | + </Grid.RowDefinitions> |
| 16 | + |
| 17 | + <Border Background="{DynamicResource Background}" |
| 18 | + CornerRadius="8"> |
| 19 | + <Grid Margin="16"> |
| 20 | + <Grid.RowDefinitions> |
| 21 | + <RowDefinition Height="*"/> |
| 22 | + <RowDefinition Height="Auto"/> |
| 23 | + </Grid.RowDefinitions> |
| 24 | + |
| 25 | + <Grid.ColumnDefinitions> |
| 26 | + <ColumnDefinition Width="*"/> |
| 27 | + <ColumnDefinition Width="Auto"/> |
| 28 | + </Grid.ColumnDefinitions> |
| 29 | + |
| 30 | + <Grid Grid.Row="0" |
| 31 | + Grid.Column="0" |
| 32 | + Margin="0, 4, 0, 0"> |
| 33 | + |
| 34 | + <Grid.RowDefinitions> |
| 35 | + <RowDefinition Height="Auto"/> |
| 36 | + <RowDefinition Height="Auto"/> |
| 37 | + <RowDefinition Height="Auto"/> |
| 38 | + <RowDefinition Height="Auto"/> |
| 39 | + </Grid.RowDefinitions> |
| 40 | + |
| 41 | + <TextBlock Text="End Season" |
| 42 | + Grid.Column="0" |
| 43 | + Grid.Row="0" |
| 44 | + Grid.ColumnSpan="2" |
| 45 | + FontSize="20" |
| 46 | + FontWeight="Bold" |
| 47 | + Foreground="{DynamicResource Foreground}" |
| 48 | + Margin="0, 0, 0, 16"/> |
| 49 | + |
| 50 | + <TextBlock Grid.Row="1" |
| 51 | + Grid.Column="0" |
| 52 | + FontSize="14" |
| 53 | + TextWrapping="Wrap" |
| 54 | + Foreground="{DynamicResource Foreground}" |
| 55 | + Margin="0, 0, 0, 4"> |
| 56 | + This operation will end the current season and start a new one. History entries cannot be added to an ended season. |
| 57 | + </TextBlock> |
| 58 | + |
| 59 | + <TextBlock Grid.Row="2" |
| 60 | + Grid.Column="0" |
| 61 | + FontSize="14" |
| 62 | + TextWrapping="Wrap" |
| 63 | + Foreground="{DynamicResource Foreground}" |
| 64 | + Margin="0, 0, 0, 4"> |
| 65 | + This operation cannot be reverted. Are you sure you want to continue? |
| 66 | + </TextBlock> |
| 67 | + |
| 68 | + <Grid Grid.Row="3" |
| 69 | + Grid.Column="0" |
| 70 | + Margin="0, 16, 0, 0"> |
| 71 | + <Grid.RowDefinitions> |
| 72 | + <RowDefinition Height="Auto"/> |
| 73 | + <RowDefinition Height="Auto"/> |
| 74 | + <RowDefinition Height="Auto"/> |
| 75 | + </Grid.RowDefinitions> |
| 76 | + |
| 77 | + <Grid.ColumnDefinitions> |
| 78 | + <ColumnDefinition Width="*"/> |
| 79 | + <ColumnDefinition Width="*"/> |
| 80 | + </Grid.ColumnDefinitions> |
| 81 | + |
| 82 | + <TextBlock Grid.Row="0" |
| 83 | + Grid.Column="0" |
| 84 | + Grid.ColumnSpan="2" |
| 85 | + FontSize="14" |
| 86 | + TextWrapping="Wrap" |
| 87 | + Foreground="{DynamicResource Foreground}" |
| 88 | + Margin="0, 0, 0, 4"> |
| 89 | + <Bold>Current Season:</Bold> |
| 90 | + </TextBlock> |
| 91 | + |
| 92 | + <TextBlock Grid.Row="1" |
| 93 | + Grid.Column="0" |
| 94 | + FontSize="14" |
| 95 | + TextWrapping="Wrap" |
| 96 | + FontWeight="Bold" |
| 97 | + Text="Name" |
| 98 | + Foreground="{DynamicResource Foreground}" |
| 99 | + Margin="0, 0, 0, 4"/> |
| 100 | + |
| 101 | + <TextBlock Grid.Row="2" |
| 102 | + Grid.Column="0" |
| 103 | + FontSize="14" |
| 104 | + TextWrapping="Wrap" |
| 105 | + FontWeight="Bold" |
| 106 | + Text="End Date" |
| 107 | + Foreground="{DynamicResource Foreground}" |
| 108 | + Margin="0, 0, 0, 4"/> |
| 109 | + |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + <TextBlock Text="{Binding Name}" |
| 114 | + Grid.Row="1" |
| 115 | + Grid.Column="1" |
| 116 | + FontSize="14" |
| 117 | + TextWrapping="Wrap" |
| 118 | + Foreground="{DynamicResource Foreground}" |
| 119 | + Margin="0, 0, 0, 4"/> |
| 120 | + |
| 121 | + <TextBlock Text="{Binding EndDate}" |
| 122 | + Grid.Row="2" |
| 123 | + Grid.Column="1" |
| 124 | + Foreground="{DynamicResource Foreground}" |
| 125 | + FontSize="14" |
| 126 | + Margin="0, 0, 0, 4"/> |
| 127 | + </Grid> |
| 128 | + </Grid> |
| 129 | + |
| 130 | + <Grid Grid.Row="1" |
| 131 | + Grid.ColumnSpan="2" |
| 132 | + Margin="0, 16, 0, 0"> |
| 133 | + <Grid.ColumnDefinitions> |
| 134 | + <ColumnDefinition Width="*"/> |
| 135 | + <ColumnDefinition Width="*"/> |
| 136 | + </Grid.ColumnDefinitions> |
| 137 | + |
| 138 | + <Button Content="No" |
| 139 | + Background="{DynamicResource Background}" |
| 140 | + Foreground="{DynamicResource Foreground}" |
| 141 | + Width="80" |
| 142 | + Height="30" |
| 143 | + HorizontalAlignment="Left" |
| 144 | + VerticalAlignment="Bottom" |
| 145 | + Style="{DynamicResource ButtonTheme}" |
| 146 | + Command="{Binding OnNoClicked}"/> |
| 147 | + |
| 148 | + <Button Content="Yes" |
| 149 | + Background="{DynamicResource AccRed}" |
| 150 | + Foreground="{DynamicResource White}" |
| 151 | + Grid.Column="1" |
| 152 | + HorizontalAlignment="Right" |
| 153 | + Width="80" |
| 154 | + Height="30" |
| 155 | + VerticalAlignment="Bottom" |
| 156 | + Style="{DynamicResource ButtonTheme}" |
| 157 | + Command="{Binding OnYesClicked}" |
| 158 | + Margin="0, 0, 4, 0"/> |
| 159 | + </Grid> |
| 160 | + </Grid> |
| 161 | + </Border> |
| 162 | + </Grid> |
| 163 | +</UserControl> |
0 commit comments