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

MainWindow

2 Answers 304 Views
Window
This is a migrated thread and some comments may be shown as answers.
Burhan Eyimaya
Top achievements
Rank 1
Burhan Eyimaya asked on 18 Jul 2018, 08:26 AM

Hello,

We are using Telerik WPF controls, after updating to version 2018.2.620.45 RadWindow as main window is not showing.

In your samples "RadWindowAsMainWindow" project is working.

After only changing 3 Telerik dlls with new version dlls ("2018.2.620.45") main window doesn't show.

I couldn't attach the project because, attaching zip files is not allowed (And I think this is another problem).

Do we have to change something in code for new versions?

Thanks,

Burhan Eyimaya

2 Answers, 1 is accepted

Sort by
0
Accepted
Dinko | Tech Support Engineer
Telerik team
answered on 20 Jul 2018, 02:20 PM
Hi Burhan,

Thank you for your interest in our RadWindow control for WPF.

I have tested the RadWindow controls with the specified version and the RadWindow as Main Window is displayed as expected on my side. A common reason why the RadWindow is not shown is that the project referenced NoXAML binaries. When using NoXAML DLLs, the newly created user control will not receive automatically the Window style. You should add the following style after the merged dictionaries to fix this:
<ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/System.Windows.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Input.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Material;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
    </ResourceDictionary.MergedDictionaries>
    <Style TargetType="local:MainWindow" BasedOn="{StaticResource RadWindowStyle}"/>
</ResourceDictionary>

I am attaching the sample project which I used to test your scenario. Give this project a try and let me know if I am missing something specific.

Regarding the attaching a sample project. Our forum system allows adding only image files. If you want to send us a .zip file with the project that demonstrates the issue you can open a support ticket thread from your telerik.com account. 

Regards,
Dinko
Progress Telerik
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.
0
Burhan Eyimaya
Top achievements
Rank 1
answered on 23 Jul 2018, 10:23 AM

Hi Dinko,

Thank you for your fast response.

This has solved our problem.

Burhan Eyimaya

Tags
Window
Asked by
Burhan Eyimaya
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Burhan Eyimaya
Top achievements
Rank 1
Share this question
or