Declined
Last Updated: 27 Jun 2017 13:28 by ADMIN
ADMIN
Georgi
Created on: 03 Apr 2014 10:43
Category: Calendar
Type: Bug Report
0
Calendar buttons text is not correct after the extraction of the template via Visual Studio or Blend

		
5 comments
ADMIN
Martin
Posted on: 27 Jun 2017 13:28
Update:

The bug report filed to Microsoft has been removed from their feedback portal.

A more simple workaround for the Material theme (and for other themes as well) is adding the missing  ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" to the ContentControl in the CalendarButton template.

We strongly when editing control templates and styles to copy them from the resource dictionaries in the appropriate folder in your installation (e.g. ...\Themes.Implicit\<platform>\<theme>\Themes), especially when targeting complex controls.
Nick
Posted on: 22 Jun 2017 18:50
Also that link to the visual studio issue isn't valid anymore.
Nick
Posted on: 22 Jun 2017 18:45
This workaround doesn't work with the new material theme.
Nick
Posted on: 22 Jun 2017 18:40
deleted by nick.whaley
ADMIN
Polya
Posted on: 02 Nov 2015 13:39
This issue occurs because of a bug in the extraction of the ControlTemplate of the ButtonStyles via Visual Studio or Blend. We've managed to isolate this issue and logged it to Microsoft here: https://connect.microsoft.com/VisualStudio/feedback/details/1929959/extracted-template-style-from-visual-studio-or-blend-is-wrong .

The workaround is to:
Remove all TemplateBindings to Content, ContentTemplate and ContentStringFormat in the ControlTemplates of the DayButtonStyle, MonthButtonStyle, YearButtonStyle and DecadeButtonStyle, because these bindings should not be added as they are not present in the original ControlTemplate.