This is a migrated thread and some comments may be shown as answers.

MonthViewPanel not updating after customising style

4 Answers 62 Views
DateTimePicker
This is a migrated thread and some comments may be shown as answers.
Robin
Top achievements
Rank 1
Robin asked on 10 Oct 2016, 09:55 AM

Hi,

We are using version 2016.1.217.40 of the Telerik.Windows.Controls.Input dll and whenever we create a custom style (via copy option in Expression Blend) it breaks the Calendar Panel.

When I say breaks, if you attempt to scroll through the months using the left or right buttons it doesn't refresh the days, i.e. the week numbers stay the same.

If we don't override the style it all works fine.  Note, at this point we are not changing anything in the style, we are simply copying it as is.

This did work ok on the 2013.3.1016.40 version.

I have also tried the same on the 2016.3.914.40 version and it also does not work.

Is there anything extra that needs to be done to maintain the functionality when overriding the default styles?

Kind regards

Robin

4 Answers, 1 is accepted

Sort by
0
Accepted
Martin
Telerik team
answered on 13 Oct 2016, 05:59 AM
Hello Robin,

The case you are describing is a known problem, which we have reported to Microsoft. The issue is logged  here in our feedback portal where there is stated a proposed workaround/fix.

Or you can copy the style from the theme xaml directly rather than extract it through Blend.

Regards,
Martin
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Robin
Top achievements
Rank 1
answered on 13 Oct 2016, 08:45 AM

Thanks Martin,

That has solved the issue perfectly.

Robin

0
Nick
Top achievements
Rank 1
answered on 22 Jun 2017, 06:45 PM

The workaround posted doesn't work when you use the new Material theme (which also suffers the same bug).

 

I should note also, that this wasn't always a bug. Leaving those 3 attributes in worked fine in the 2013 version (I recently did an update from 2013-2016, which went surprisingly smooth)

0
Martin
Telerik team
answered on 27 Jun 2017, 01:28 PM
Hello Nick,

We suggest when extracting and editing control templates and styles to copy them from the generated .xaml files that we provide in the ...\Themes.Implicit\WPF40\<theme>\Themes since the VS designer does not serialize all the properties as expected every time.

Furthermore, to make it work for the Material theme (if you extract it), you could add ContentTemplateSelector="{TemplateBinding ContentTemplateSelector}" to the ContentControl in the template(s) of the CalendarButton. I will update the proposed workaround in the feedback item.

Regards,
Martin
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
DateTimePicker
Asked by
Robin
Top achievements
Rank 1
Answers by
Martin
Telerik team
Robin
Top achievements
Rank 1
Nick
Top achievements
Rank 1
Share this question
or