How to increase the font size of the date that is selected on a CalendarDatePicker

前端 未结 2 1206
感动是毒
感动是毒 2021-01-17 00:27

I have a CalendarDatePicker control on my UWP app. I am not able to increase the size of the font of the date that is selected using the FontSize a

2条回答
  •  一向
    一向 (楼主)
    2021-01-17 00:47

    You can check the properties of the control using Live Visual Tree tool, in your case you want to change the size of the internal TextBlock:

    You can modify the TextBlock font size in a copy of the default style https://msdn.microsoft.com/en-us/library/windows/apps/mt299110.aspx

    As you can see, it is hardcoded to 15 in the default template:

    
    

提交回复
热议问题