Implicit styles and Visual Studio Designer

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 11 Sep 2013 Link to this post

    Hello,
    I'm creating a new WPF application and would like to use implicit styles. The application currently uses the Windows8 theme.
    I've added the references to the Telerik assemblies, including Telerik.Windows.Themes.Windows8.
    In App.xaml, I have:
    <Application.Resources>
      <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
          <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>
          <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.xaml"/>
          <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
          <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
          <ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
        </ResourceDictionary.MergedDictionaries>
      </ResourceDictionary>
    </Application.Resources>

    In Window1.xaml, I just have added a RadButton.
    When I run the application, the button is displayed with the right theme, but the Visual Studio 2012 designer doesn't show the content of the button, as if the theme was not loaded.
    How can I have the Visual Studio designer display the button correctly?

    Patrick
  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 16 Sep 2013 Link to this post

    Hi Patrick,

    We are aware of this problem when using Implicit Styles. We are currently checking what is the best solution of this problem. The issue is related to our dynamic resources which we've used in Windows8 and Windows8Touch themes. If you use our XAML binaries you will not face the same issue.

    We are really sorry for the caused inconvenience.

    Regards,
    Rosen Vladimirov
    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top