RadWindow as MainWindow, revisited

4 posts, 0 answers
  1. Steve
    Steve avatar
    5 posts
    Member since:
    Jul 2015

    Posted 03 Jul 2015 Link to this post

    In this thread http://www.telerik.com/forums/prism-and-rad-window you have a demo for how to use a RadWindow as the main window.  However, when you switch to using the NoXAML dlls, the window does not show.  I should also note that I am currently using the demo version, in case that matters.  Thanks for any help with this!

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 06 Jul 2015 Link to this post

    Hello Steve,

    As you are using NoXaml binaries we assume you are applying Implicit Styles in your application. If so, the newly created control that inherits RadWindow will not receive automatically the Window style- thus the control won't be visualized. The following style should be added after the merged dictionaries in order to visualize it:
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/System.Windows.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.xaml"/>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Office_Black;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    <Style TargetType="local:Shell" BasedOn="{StaticResource RadWindowStyle}" />

    We have also modified the sample project from the forum thread in order to use NoXaml binaries and you could run and evaluate it.

    We hope this will help you.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Steve
    Steve avatar
    5 posts
    Member since:
    Jul 2015

    Posted 06 Jul 2015 Link to this post

    That worked, thanks!
  5. Steve
    Steve avatar
    5 posts
    Member since:
    Jul 2015

    Posted 10 Jul 2015 Link to this post

    An additional tip for future surfers: you will need this line in the constructor of your window if you want to see it show up in the taskbar:

     RadWindowInteropHelper.SetShowInTaskbar(this, true);

Back to Top