Styling for Office2013

4 posts, 0 answers
  1. Edward
    Edward avatar
    13 posts
    Member since:
    Oct 2013

    Posted 11 Jun 2014 Link to this post

    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.  
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 12 Jun 2014 Link to this post

    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.
     
  3. DevCraft banner
  4. Edward
    Edward avatar
    13 posts
    Member since:
    Oct 2013

    Posted 13 Jun 2014 in reply to Yana Link to this post

    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?
  5. Masha
    Admin
    Masha avatar
    355 posts

    Posted 16 Jun 2014 Link to this post

    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.
     
Back to Top