|
24 | 24 | <ColumnDefinition />
|
25 | 25 | <ColumnDefinition />
|
26 | 26 | </Grid.ColumnDefinitions>
|
27 |
| - <Grid.RowDefinitions> |
28 |
| - <RowDefinition /> |
29 |
| - <RowDefinition /> |
30 |
| - </Grid.RowDefinitions> |
31 |
| - <StackPanel> |
32 |
| - <TextBlock Text="date picker" |
33 |
| - Margin="0,5" |
34 |
| - FontSize="20" |
35 |
| - HorizontalAlignment="Center" /> |
36 |
| - <DatePicker Width="150" |
| 27 | + |
| 28 | + <StackPanel VerticalAlignment="Top"> |
| 29 | + <Label Content="Date picker" |
| 30 | + Style="{DynamicResource DescriptionHeaderStyle}" /> |
| 31 | + |
| 32 | + <DatePicker Margin="0, 10, 0, 0" |
| 33 | + Width="150" |
37 | 34 | HorizontalAlignment="Center"
|
38 | 35 | Controls:TextBoxHelper.Watermark="Select a date" />
|
39 |
| - <DatePicker Width="300" |
40 |
| - Margin="2" |
| 36 | + <DatePicker Margin="0, 10, 0, 0" |
| 37 | + Width="150" |
| 38 | + HorizontalAlignment="Center" |
| 39 | + Controls:TextBoxHelper.Watermark="Select a date" |
| 40 | + IsEnabled="False" /> |
| 41 | + <DatePicker Margin="0, 10, 0, 0" |
| 42 | + Width="300" |
41 | 43 | FontSize="24"
|
42 | 44 | HorizontalAlignment="Center"
|
43 | 45 | SelectedDate="{Binding DatePickerDate, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}"
|
44 | 46 | Controls:TextBoxHelper.Watermark="Select a date" />
|
45 | 47 | </StackPanel>
|
46 |
| - <StackPanel Grid.Row="1" |
47 |
| - Grid.Column="0"> |
48 |
| - <TextBlock Text="disabled date picker" |
49 |
| - Margin="0,5" |
50 |
| - FontSize="20" |
51 |
| - HorizontalAlignment="Center" /> |
52 |
| - <DatePicker Width="150" |
53 |
| - HorizontalAlignment="Center" |
54 |
| - Controls:TextBoxHelper.Watermark="Select a date" |
55 |
| - IsEnabled="False" /> |
56 |
| - </StackPanel> |
57 |
| - <StackPanel Grid.Row="0" |
| 48 | + |
| 49 | + <StackPanel VerticalAlignment="Top" |
| 50 | + Grid.Row="0" |
58 | 51 | Grid.Column="1">
|
59 |
| - <TextBlock Text="calendar" |
60 |
| - Margin="0,5" |
61 |
| - FontSize="20" |
62 |
| - HorizontalAlignment="Center" /> |
63 |
| - <Calendar /> |
64 |
| - </StackPanel> |
| 52 | + <Label Content="Calendar" |
| 53 | + Style="{DynamicResource DescriptionHeaderStyle}" /> |
65 | 54 |
|
66 |
| - <StackPanel Grid.Column="1" |
67 |
| - Grid.Row="1"> |
68 |
| - <TextBlock Text="disabled calendar" |
69 |
| - Margin="0,5" |
70 |
| - FontSize="20" |
71 |
| - HorizontalAlignment="Center" /> |
72 |
| - <Calendar IsEnabled="False" /> |
| 55 | + <Calendar Margin="5" /> |
| 56 | + <Calendar Margin="5" |
| 57 | + IsEnabled="False" /> |
73 | 58 | </StackPanel>
|
74 | 59 | </Grid>
|
75 | 60 | </AdornerDecorator>
|
|
0 commit comments