This is a migrated thread and some comments may be shown as answers.

RadWindow as MainWindow, revisited

3 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 03 Jul 2015, 08:36 PM

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!

3 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 06 Jul 2015, 10:59 AM
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
0
Steve
Top achievements
Rank 1
answered on 06 Jul 2015, 06:29 PM
That worked, thanks!
0
Steve
Top achievements
Rank 1
answered on 10 Jul 2015, 11:57 PM

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);

Tags
General Discussions
Asked by
Steve
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Steve
Top achievements
Rank 1
Share this question
or