【发布时间】:2018-08-13 07:34:56
【问题描述】:
我的 UWP 应用上有一个 CalendarDatePicker 控件。我无法增加使用 FontSize 属性选择的日期的字体大小。
如何在不覆盖大量样式的情况下轻松做到这一点?
这是我的基本代码:
<Page
x:Class="CalendarPickerExample.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:CalendarPickerExample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<CalendarDatePicker FontSize="30" />
</Grid>
</Page>
无论我在CalendarDatePicker上设置FontSize属性是什么大小,所选日期的字体大小都不会增加。
请帮忙!
【问题讨论】:
标签: xaml datepicker uwp windows-10-universal