Themes

5 posts, 0 answers
  1. Javor
    Javor avatar
    11 posts
    Member since:
    Sep 2013

    Posted 15 May Link to this post

    Hi,

    I try to load runtime Theme but after load of my application and the window which used to show is invisible i can't find why can you help me.

  2. Javor
    Javor avatar
    11 posts
    Member since:
    Sep 2013

    Posted 15 May Link to this post

    I have example project but how can i attached ? 
  3. Javor
    Javor avatar
    11 posts
    Member since:
    Sep 2013

    Posted 15 May Link to this post

    Here is the example

  4. Javor
    Javor avatar
    11 posts
    Member since:
    Sep 2013

    Posted 16 May in reply to Javor Link to this post

    Here is the example https://drive.google.com/file/d/0B_UcBhcYJwBSOFM1NTB1TS1TR0k/view?usp=sharing
  5. Dinko
    Admin
    Dinko avatar
    367 posts

    Posted 17 May Link to this post

    Hi Javor,

    Thank you for provided project.

    If you want to use RadRibbonWindow and RadWindow with NoXAML binaries there are several steps to accomplish this.
    1. RadRibbonWindow 
    • Set in the static constructor of the Window:
      Telerik.Windows.Controls.RadRibbonWindow.IsWindowsThemeEnabled = False
      If its value is True, you will have the default style from the Windows OS. You can find more information in our help covering RibbonWindow
    • Create custom Style which target type is set to MainWindow with a BasedOn property set to a RadRibbonWindowStyle static resource (which can be found in RibbonWindowStyle.xaml in the attached project):
      <Style TargetType="local:RibbonWindow" BasedOn="{StaticResource RadRibbonWindowStyle}" />
    • In your case in the GlobalSettingsResourcesManager file, you can create a ResourceDictionary object and set the Uri string to "RibbonWindowStyle.xaml" and add it to the MergedDictionaries collection.

    2. RadWindow  

    • Create custom Style which target type is set to Login with a BasedOn property set to RadWindowStyle static resource (which can be found in WindowStyle.xaml in the attached project):
      <Style TargetType="local:Login" BasedOn="{StaticResource RadWindowStyle}" />
      You can find more information in the Use RadWindow as User Control help article in our documentation.
    • In your case in the GlobalSettingsResourcesManager file, you can create a ResourceDictionary object and set the Uri string to "RadWindowStyle.xaml" and add it to the MergedDictionaries collection.
    For your convenience, we have modified the provided project from your reply and attached here. Give this project a try and let us know if it works for you.

    Regards,
    Dinko
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top