Skip to content

Commit bb07e6b

Browse files
committed
💅 DateExample
1 parent 97fa00f commit bb07e6b

File tree

1 file changed

+22
-37
lines changed

1 file changed

+22
-37
lines changed

samples/MetroDemo/ExampleViews/DateExamples.xaml

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -24,52 +24,37 @@
2424
<ColumnDefinition />
2525
<ColumnDefinition />
2626
</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"
3734
HorizontalAlignment="Center"
3835
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"
4143
FontSize="24"
4244
HorizontalAlignment="Center"
4345
SelectedDate="{Binding DatePickerDate, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}"
4446
Controls:TextBoxHelper.Watermark="Select a date" />
4547
</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"
5851
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}" />
6554

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" />
7358
</StackPanel>
7459
</Grid>
7560
</AdornerDecorator>

0 commit comments

Comments
 (0)