Prism and RadWindow

3 posts, 0 answers
  1. Wang
    Wang avatar
    46 posts
    Member since:
    Oct 2011

    Posted 27 Jan 2016 Link to this post


    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. Vladi
    Vladi avatar
    749 posts

    Posted 28 Jan 2016 Link to this post

    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.

    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. Wang
    Wang avatar
    46 posts
    Member since:
    Oct 2011

    Posted 28 Jan 2016 in reply to Vladi Link to this post

    Thank you Vladi !

    I will try your idea, best wishes!

Back to Top