Office 2013 Theme for WPF Controls

18 posts, 0 answers
  1. Pieter
    Pieter avatar
    4 posts
    Member since:
    May 2012

    Posted 18 Jul 2012 Link to this post

    Hi there,

    Since the (very) recent release of Office 2013, will Telerik be rolling out an Office 2013 theme for WPF Controls?

    What would be the timeline?

    Thanks in advance.

    Pieter
  2. Hristo
    Admin
    Hristo avatar
    408 posts

    Posted 23 Jul 2012 Link to this post

    Hello,

    A theme based on Office 2013 is not in our immediate plans. We will discuss this on our next planning meeting.

    Greetings,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Chad
    Chad avatar
    12 posts
    Member since:
    Apr 2008

    Posted 27 Jul 2012 Link to this post

    +1 for Office 2013 theme -- would be nice to have for Silverlight also...
  5. Jesper
    Jesper avatar
    21 posts
    Member since:
    Oct 2012

    Posted 17 Jan 2013 Link to this post

    It's really important for us to support the Office2013 styles. Count it as +1 from me!
  6. Wojciech
    Wojciech avatar
    2 posts
    Member since:
    Sep 2008

    Posted 01 Feb 2013 Link to this post

    +1 for Office 2013 Ribbon theme/style
  7. Matt
    Matt avatar
    4 posts
    Member since:
    Jun 2011

    Posted 16 Apr 2013 Link to this post

    +1 more for the Office 2013 theme.  I'm very surprised Telerik is so far behind the curve on this one.
  8. Chad
    Chad avatar
    12 posts
    Member since:
    Apr 2008

    Posted 16 Apr 2013 Link to this post

    +1 again...

    We've now invested about $300k doing this ourselves... any interest in taking over support from us?

      Chad

  9. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 19 Apr 2013 Link to this post

    Hello,

    Thank you for your interest.

    We are currently working on it, but so far I cannot commit when it will be officially released. 

    Regards,
    Didie
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  10. Christian
    Christian avatar
    3 posts
    Member since:
    Jan 2011

    Posted 07 Jul 2013 Link to this post

    Any update on this? I'm considering/looking at DevExpress because of their Office 2013 theming. I'm sure I'm not the only one.
  11. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 08 Jul 2013 Link to this post

    Hello,

    The Office 2013 Theme is planned to be released with the upcoming Q3 2012.

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  12. Alan
    Alan avatar
    47 posts
    Member since:
    Jun 2009

    Posted 23 Jul 2013 Link to this post

    Didie, do you mean Q3 2013?
  13. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 23 Jul 2013 Link to this post

    Hi,

    Yes, you are correct. I apologize for the wrong year. 

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  14. Alexey
    Alexey avatar
    1 posts
    Member since:
    Feb 2012

    Posted 17 Oct 2013 Link to this post

    Hello!
    I'm using the newly version Q3 2013. How to set Office2013 theme for all controls in application? Tried to use StyleManager.ApplicationTheme, but can not create object Office2013Theme, because it internal. How can this be done?
  15. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 17 Oct 2013 Link to this post

    Hi,

    You can apply the Theme using the approach explained in the Implicit Styles article. For the purpose you need to add NoXaml binaries to your application.

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  16. Ristogod
    Ristogod avatar
    63 posts
    Member since:
    Aug 2008

    Posted 17 Oct 2013 Link to this post

    Any examples? Because what you linked to makes no sense.

    Also, why switch from something simple to something overly convoluted and tedious?
  17. Pana
    Admin
    Pana avatar
    748 posts

    Posted 21 Oct 2013 Link to this post

    Hello,

    I understand your frustration, however implicit styles are not that convoluted and tedious.

    We have done our best to allow our clients easily create new projects using the implicit styles. For example if you install our controls for WPF you will have Telerik new project templates for creating an implicit styles enabled project. You can create a project using implicit styles without a single line of code. How to - please check the 4 attached screenshots  (CreatingImplicitStylesApp00.png, CreatingImplicitStylesApp01.png, CreatingImplicitStylesApp02.png, CreatingImplicitStylesApp03.png)

    Technically it simply references the assemblies from the right location - Binaries.NoXaml and merges the themes in the app.xaml:

    <Application x:Class="SampleWPFApp.App"
            StartupUri="MainWindow.xaml">
        <Application.Resources>
          <ResourceDictionary>
              <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Blue;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Blue;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Blue;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
                <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Blue;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
              </ResourceDictionary.MergedDictionaries>
          </ResourceDictionary>
        </Application.Resources>
    </Application>

    And you are done.

    Further more only If you want to change the themes at runtime you can simply remove all merged dictionaries for the current app.xaml and merge the new dictionaries from the new theme. How to - please check the attached WPF project. It contains 3 buttons that swap the merged dictionaries using the following code:

    using System;
    using System.Windows;
     
    namespace SampleWPFApp
    {
        public partial class MainWindow : Window
        {
            public MainWindow()
            {
                InitializeComponent();
            }
     
            private void Blue_Click(object sender, RoutedEventArgs e)
            {
                ChangeTheme("Office_Blue");
            }
     
            private void Silver_Click(object sender, RoutedEventArgs e)
            {
                ChangeTheme("Office_Silver");
            }
     
            private void Office2013_Click(object sender, RoutedEventArgs e)
            {
                ChangeTheme("Office2013");
            }
     
            private static void ChangeTheme(string theme)
            {
                Application.Current.Resources.MergedDictionaries.Clear();
                MergeThemeResourceDictionary(theme, "System.Windows");
                MergeThemeResourceDictionary(theme, "Telerik.Windows.Controls");
                MergeThemeResourceDictionary(theme, "Telerik.Windows.Controls.Input");
                MergeThemeResourceDictionary(theme, "Telerik.Windows.Controls.Navigation");
            }
     
            private static void MergeThemeResourceDictionary(string theme, string assembly)
            {
                var resourceDictionary = new ResourceDictionary();
                var uriPath = string.Format("/Telerik.Windows.Themes.{0};component/Themes/{1}.xaml", theme, assembly);
                resourceDictionary.Source = new Uri(uriPath, UriKind.RelativeOrAbsolute);
                Application.Current.Resources.MergedDictionaries.Add(resourceDictionary);
            }
        }
    }


    Should you have further problems, please do not hesitate to contact us.

    Regards,
    Pana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  18. Ristogod
    Ristogod avatar
    63 posts
    Member since:
    Aug 2008

    Posted 21 Oct 2013 Link to this post

    I don't see how a project template is going to help for anything already well into development.

    Also, tried what you suggested. Doesn't work. Submitted support ticket.
  19. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 22 Oct 2013 Link to this post

    Hello Nathan,

    Thank you for sending the additional information in the ticket. We have reviewed it and replied.

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top
UI for WPF is Visual Studio 2017 Ready