collapsed textbox and added headertext to the calendar picker element

This commit is contained in:
David Kheri 2019-05-18 15:16:48 +02:00
commit 450b8f1373

View file

@ -417,19 +417,13 @@
</Grid.RowDefinitions> </Grid.RowDefinitions>
<!-- From Date --> <!-- From Date -->
<TextBlock x:Name="Date_FromLabel"
x:Uid="Date_FromLabel"
Grid.Row="1"
Margin="0,0,0,2"
Foreground="{ThemeResource SystemControlPageTextBaseHighBrush}"
TextWrapping="Wrap"/>
<CalendarDatePicker x:Name="DateDiff_FromDate" <CalendarDatePicker x:Name="DateDiff_FromDate"
Grid.Row="2" Grid.Row="2"
Style="{StaticResource DateCalculation_CalendarPickerStyle}" Style="{StaticResource DateCalculation_CalendarPickerStyle}"
AutomationProperties.LabeledBy="{x:Bind Date_FromLabel}"
CalendarViewStyle="{StaticResource DateCalculation_CalendarViewStyle}" CalendarViewStyle="{StaticResource DateCalculation_CalendarViewStyle}"
Closed="CalendarFlyoutClosed" Closed="CalendarFlyoutClosed"
DateChanged="FromDate_DateChanged"/> DateChanged="FromDate_DateChanged"
Header="From"/>
<!-- To Date --> <!-- To Date -->
<TextBlock x:Name="Date_ToLabel" <TextBlock x:Name="Date_ToLabel"
@ -502,7 +496,6 @@
Grid.Row="2" Grid.Row="2"
Margin="0,0,0,0" Margin="0,0,0,0"
Style="{StaticResource DateCalculation_CalendarPickerStyle}" Style="{StaticResource DateCalculation_CalendarPickerStyle}"
AutomationProperties.LabeledBy="{x:Bind Date_FromLabel}"
CalendarViewStyle="{StaticResource DateCalculation_CalendarViewStyle}" CalendarViewStyle="{StaticResource DateCalculation_CalendarViewStyle}"
Closed="CalendarFlyoutClosed" Closed="CalendarFlyoutClosed"
DateChanged="AddSubtract_DateChanged"/> DateChanged="AddSubtract_DateChanged"/>