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

Prism and RAD Window

5 Answers 244 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 19 May 2015, 12:43 PM

I have changed my shell to a RadWindow, the problem is I now get unable to cast to Window in the BootStrapper. Is there a way around this?

 

 

 

 

5 Answers, 1 is accepted

Sort by
0
Accepted
Kalin
Telerik team
answered on 22 May 2015, 07:42 AM
Hi Darren,

Check the attached sample project that demonstrates how to use RadWindow as a Shell in PRISM application.

Hope this helps.

Regards,
Kalin
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
Darren
Top achievements
Rank 1
answered on 22 May 2015, 07:47 AM
That's great thank you 
0
steven
Top achievements
Rank 1
answered on 29 Mar 2017, 04:43 PM

I am having using a telerik wpf radwindow as the shell in a prism application.

The prism   ViewModelLocator.AutoWireViewModel does seem to pick the radwindow's viewmodel automatically at run time to associate the viewmodel to the view. The Radwindow is assigned in the view folder and the corresponding viewmodel is assigned in the viewmodel folder. Could you take a look at code and the me know what is wrong? The attached file is actually a zip file. You will need to change the ong to zip after downloading. Prism 6.3 is the version of prism used.

0
Kalin
Telerik team
answered on 03 Apr 2017, 10:15 AM
Hello Steven,

The views should be in .Views child namespace in order to get it working as expected, as explained in this article from the Prism documenation in MSDN:

This convention assumes that view models are in the same assembly as the view types, that view models are in a .ViewModels child namespace, that views are in a .Views child namespace, and that view model names correspond with view names and end with "ViewModel.". 

Hope this helps.

Regards,
Kalin
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.
0
Darko
Top achievements
Rank 1
answered on 22 Feb 2018, 01:32 PM

Hi,

the example codes do not seem to work. When i start the project (with the current version of Telerik UI 2018 and prism 7) the window does not appear.

Tags
General Discussions
Asked by
Darren
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Darren
Top achievements
Rank 1
steven
Top achievements
Rank 1
Darko
Top achievements
Rank 1
Share this question
or