WPF RadDesktopAlert with Buttons

2 posts, 1 answers
  1. Jai
    Jai avatar
    14 posts
    Member since:
    Feb 2017

    Posted 12 Apr Link to this post

    Hi Telerik,
    I need your quick suggestion on the below requirement for our reputed Client (Transportation domain).
    We are using the RaddesktopAlert and have an immediate requirement to have some buttons  on RaddesktopAlert to perform some functionalities. I came across that RaddesktopAlert for Winforms supports this but don't have any idea how to achieve the same on RaddesktopAlert for WPF.
    Any help on this one will be grateful :)
  2. Answer
    Nasko avatar
    698 posts

    Posted 13 Apr Link to this post

    Hello Jai,

    In order to achieve the desired appearance of RadDesktopAlert you need to modify its default Template. So, basically you need to create a custom Style for RadDesktopAlert based on its default one. After that you need to place the desired Button inside its ControlTemplate with key x:Key="RadDesktopAlertTemplate".

    We have created a sample project that demonstrates that. Please, check it and let us know if it worked for you - notice that Implicit Styles were used.

    We have also noticed that you have asked the exact same question on several other forum threads. We have provided the answer to them as well in order to be available for the other members of the community. However, please lets continue our discussion in the current forum thread, so that we could follow the communication more easily.

    Hope this helps.

    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.
Back to Top