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

Theme not applying to TimePicker

2 Answers 57 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Sorin
Top achievements
Rank 1
Sorin asked on 10 Dec 2014, 08:31 AM
Hello,

I have a theme set that doesn't apply to some RadTimePickers. The specified theme is applied to DateTimePickers, even though there was no theme override (no styles set or anything like that, neither on the time and datetime pickers nor the grid). 
Attached you can find a .png with the controls on which the mentioned theme doesn't apply, as well as their xaml code.

2 Answers, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 11 Dec 2014, 01:49 PM
Hello Sorin,

It seems that RadDateTimePicker doesn't get the correct theme in the way it is used - in DataTemplate of GridViewDataColumn.CellTemplate.

According to the binaries used in the project you can try setting StyleManager (with Xaml binaries) or Style=" {StaticResource RadDateTimePickerStyle} " (with NoXaml binaries and RadDateTimePickerStyle should be defined in the Themes.xaml file) to RadDateTimePicker inside of the DataTemplate.

I hope this helps.

Regards,
Masha
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Sorin
Top achievements
Rank 1
answered on 11 Dec 2014, 02:30 PM
Hello again,

The TimePicker wasn't included in theme.xaml, just as you mentioned. 
Thank you!

Best regards,
Sorin

Tags
TimePicker
Asked by
Sorin
Top achievements
Rank 1
Answers by
Masha
Telerik team
Sorin
Top achievements
Rank 1
Share this question
or