feat: explicitly assign fontsize to calendar view. remove font size from demo.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<StackPanel Margin="20" HorizontalAlignment="Left">
|
<StackPanel Margin="20" HorizontalAlignment="Left">
|
||||||
<u:CalendarView DateSelected="CalendarView_OnOnDateSelected" DatePreviewed="CalendarView_OnOnDatePreviewed"/>
|
<u:CalendarView DateSelected="CalendarView_OnOnDateSelected" DatePreviewed="CalendarView_OnOnDatePreviewed"/>
|
||||||
<TextBlock Text="{Binding #singlePicker.SelectedDate}" ></TextBlock>
|
<TextBlock Text="{Binding #singlePicker.SelectedDate}" ></TextBlock>
|
||||||
<u:DatePicker Name="singlePicker" Width="200" FontSize="20"/>
|
<u:DatePicker Name="singlePicker" Width="200" />
|
||||||
<u:DateRangePicker Width="300" DisplayFormat="yyyyMMdd" FontSize="20" />
|
<u:DateRangePicker Width="300" DisplayFormat="yyyyMMdd" />
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
</UserControl>
|
</UserControl>
|
||||||
|
|||||||
@@ -83,6 +83,7 @@
|
|||||||
<u:CalendarView
|
<u:CalendarView
|
||||||
Name="PART_Calendar"
|
Name="PART_Calendar"
|
||||||
BorderThickness="0"
|
BorderThickness="0"
|
||||||
|
FontSize="{DynamicResource DefaultFontSize}"
|
||||||
CornerRadius="{Binding $parent[Border].CornerRadius}"
|
CornerRadius="{Binding $parent[Border].CornerRadius}"
|
||||||
FirstDayOfWeek="{TemplateBinding FirstDayOfWeek}"
|
FirstDayOfWeek="{TemplateBinding FirstDayOfWeek}"
|
||||||
IsTodayHighlighted="{TemplateBinding IsTodayHighlighted}" />
|
IsTodayHighlighted="{TemplateBinding IsTodayHighlighted}" />
|
||||||
|
|||||||
@@ -119,6 +119,7 @@
|
|||||||
Grid.Column="0"
|
Grid.Column="0"
|
||||||
Margin="8"
|
Margin="8"
|
||||||
BorderThickness="0"
|
BorderThickness="0"
|
||||||
|
FontSize="{DynamicResource DefaultFontSize}"
|
||||||
CornerRadius="{Binding $parent[Border].CornerRadius}"
|
CornerRadius="{Binding $parent[Border].CornerRadius}"
|
||||||
FirstDayOfWeek="{TemplateBinding FirstDayOfWeek}"
|
FirstDayOfWeek="{TemplateBinding FirstDayOfWeek}"
|
||||||
IsTodayHighlighted="{TemplateBinding IsTodayHighlighted}" />
|
IsTodayHighlighted="{TemplateBinding IsTodayHighlighted}" />
|
||||||
@@ -127,6 +128,7 @@
|
|||||||
Grid.Column="1"
|
Grid.Column="1"
|
||||||
Margin="8"
|
Margin="8"
|
||||||
BorderThickness="0"
|
BorderThickness="0"
|
||||||
|
FontSize="{DynamicResource DefaultFontSize}"
|
||||||
CornerRadius="{Binding $parent[Border].CornerRadius}"
|
CornerRadius="{Binding $parent[Border].CornerRadius}"
|
||||||
FirstDayOfWeek="{TemplateBinding FirstDayOfWeek}"
|
FirstDayOfWeek="{TemplateBinding FirstDayOfWeek}"
|
||||||
IsTodayHighlighted="{TemplateBinding IsTodayHighlighted}" />
|
IsTodayHighlighted="{TemplateBinding IsTodayHighlighted}" />
|
||||||
|
|||||||
Reference in New Issue
Block a user