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

Styling for Office2013

3 Answers 23 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Edward
Top achievements
Rank 1
Edward asked on 11 Jun 2014, 04:36 PM
Trying to apply styling for Office2013...
Using 
StyleManager.ApplicationTheme = new Windows7Theme();
in App.xaml.cs.

Works for all other themes, but even though I added the Telerik.Windows.Themes.Office2013.dll from the noxaml bin folder, there doesn't seem to be way to use the above syntax for the Office3013 theme.
Is there another way to apply the theme.

Basically the Office2013 theme does not appear in the intellisense like the other themes do.  

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 12 Jun 2014, 07:08 AM
Hi Edward,

Actually Office2013 is an external theme - this means that it can be set only with Implicit Styles ( not with StyleManager). For more details on the theme, please go to the following topic in our documentation:
Office2013 Theme.

I hope this information will be helpful.

Regards,
Yana
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Edward
Top achievements
Rank 1
answered on 13 Jun 2014, 11:12 PM
Using merged resource dictionaries in the app.xaml

<Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <!-- Telerik.Windows.Controls is used by all assemblies -->
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
              etc...
        </ResourceDictionary.MergedDictionaries>
</ResourceDictionary>

and Office2013Palette.LoadPreset(Office2013Palette.ColorVariation.DarkGray);
in the code behind.

That works application wide... but wondering is there way to override the style elements for one particular page?
0
Masha
Telerik team
answered on 16 Jun 2014, 07:57 AM
Hello Edward,

When you change color variation in  Office2013theme you modify globally all colors of Office2013 palette in the application. So if you want to customize for example the RadButton's MouseOver brush to have different color, you need to create explicit custom style for RadButton  where the MouseOver background is changed.

I hope this information would be helpful.

 


Regards,
Masha
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
General Discussions
Asked by
Edward
Top achievements
Rank 1
Answers by
Yana
Telerik team
Edward
Top achievements
Rank 1
Masha
Telerik team
Share this question
or