Prism and RadWindow

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

    Posted 27 Jan Link to this post

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

    Posted 28 Jan 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.

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. Wang
    Wang avatar
    42 posts
    Member since:
    Oct 2011

    Posted 28 Jan in reply to Vladi Link to this post

    Thank you Vladi !

    I will try your idea, best wishes!

Back to Top