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

Styling RadDocking

2 Answers 49 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 13 Apr 2014, 08:47 AM
Please tell me to style raddocking.

Using the code samples from online examples, seem to have the following code:
<telerik:RadDocking x:Name="Docking"  telerikQuickStart:ThemeAwareBackgroundBehavior.IsEnabled="True"  BorderThickness="0" Padding="0">

But the code for telerikQuickStart:ThemeAwareBackgroundBehavior is missing.
I would like to style the raddock with Office2013 theme.  Please tell me method or where to get the missing code or where to get the source code for the QuickStart/Example projects.

New to this.

Thanks.

2 Answers, 1 is accepted

Sort by
0
Edward
Top achievements
Rank 1
answered on 14 Apr 2014, 01:17 AM
Figured out how to do it using implicit styles.  Had to add Telerik.Windows.Controls.Docking.xaml from the installation folder to the Themes folder in the project and then add to Application.Resources in App.xaml file.
Under ResourceDictionary.MergedDictionaries:

<ResourceDictionary Source="Themes/Office2013/Telerik.Windows.Controls.Docking.xaml" />

These imports and entries in App.xaml was actually created for DataVisualization.xaml when I created the project because I selected implicit styling using the Telerik Silverlight project template, but I hadn't selected Docking.xaml at that time.  But added it manually as described above and works automagically.
0
Yana
Telerik team
answered on 15 Apr 2014, 12:36 PM
Hello Edward,

I am glad to hear that you've managed to resolve the issue.

Additionally, I'd like to note that instead of copying the xaml files you could reference the theme assembly and merge the resource dictionaries from there. Please check the following topic for more details:
Setting a Theme (Using Implicit Styles).

Regards,
Yana
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.

 
Tags
Docking
Asked by
Edward
Top achievements
Rank 1
Answers by
Edward
Top achievements
Rank 1
Yana
Telerik team
Share this question
or