Template Selector

2 posts, 1 answers
  1. Kheng Aik
    Kheng Aik avatar
    7 posts
    Member since:
    May 2015

    Posted 02 Jul 2015 Link to this post

    Hi,

    Is it possible to select different visual template/theme dynamically in code to handle different type of alert. For example red background for critical message while blue background is for normal alert.

    Thanks.

  2. Answer
    Masha
    Admin
    Masha avatar
    355 posts

    Posted 02 Jul 2015 Link to this post

    Hello Kheng,

    You can achieve the desired scenario simply by creating different RadDesktopAlert styles and applying them according to your needs when RadDesktopAlert has been initialized.

    I've demonstrated the above approach in the attached project. Please note the project uses implicit styles approach and NoXaml binaries.

    Hope this helps.

    Regards,
    Masha
    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
Back to Top