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

Prism and RadWindow

2 Answers 210 Views
Window
This is a migrated thread and some comments may be shown as answers.
Wang
Top achievements
Rank 1
Wang asked on 28 Jan 2016, 03:02 AM

Hello!

I have a question about Prism and RadWindow, In Prism's  Samples of Wpf on GitHub, there is a "InteractivityQuickstart ",

in this sample, alert ,confirm and window are Window but not RadWindow,

and I find there are 3 Window Control in PrismLibrary named "DefaultConfirmationWindow","DefaultNotificationWindow" and "DefaultWindow",

I want to know is there any way to show Telerik alert ,confirm, prompt and pop window in Prism mode?

If I replace the 3 Window Control by RadWindow in PrismLibrary, there will no Icon in alert ,confirm and prompt. if I set a Icon, it can not fit for different themes.

Is there some good solution?

 

2 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 28 Jan 2016, 08:03 AM
Hello Wang,

Thank you for contacting us.

The PRISM library is a rich library that has many built-in functionalities which are implemented internally in its code and cannot be easily changed from the out side of that code. The good news is that the library is open source and you could modify its code the way you like. When using the PRISM libraries "DefaultConfirmationWindow","DefaultNotificationWindow" and "DefaultWindow" etc. it internally creates an instance of the default Window .NET class and uses it to show the predefined Windows. This functionality cannot be changed via "plugin" to the library and you will need to go and change the source code of the PRISM library where those "DefaultConfirmationWindow","DefaultNotificationWindow" and "DefaultWindow" are created. For example you could take a look at the PopupWindowAction.cs class from the PRISM's source code, notice the implementation of the CreateDefaultWindow() method. In that method a default Window object is created, you could customize it and all other places where such instances are created by changing the implementation to instead create a RadWindow instance.

Note that such customization of the PRISM library is out of the scope of the RadWindow control and it is a general way of customizing the library to fit custom scenarios. Hope this information is helpful.

Regards,
Vladi
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
Wang
Top achievements
Rank 1
answered on 29 Jan 2016, 12:45 AM

Thank you Vladi !

I will try your idea, best wishes!

Tags
Window
Asked by
Wang
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Wang
Top achievements
Rank 1
Share this question
or