RadDesktopAlert

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

    Posted 10 Mar Link to this post

    Telerik.Windows.Controls.RadDesktopAlert doesn't seem to have a global click event AND also does not have a PopUp property to achieve that. Currently It gets fired only When the user clicks the Content of the RadDesktopAlert . Requirement says  for setting where the user can click anywhere on the DesktopAlert and get fired the click event. I tried looking for Hwnd or Handle so I could manually register a click event in this manner, but even those properties don't exist.

    I have a requirement where I need a global event, how to achieve global Click event ?

     

  2. Answer
    Kalin
    Admin
    Kalin avatar
    1266 posts

    Posted 14 Mar Link to this post

    Hi Jai,

    By design only the Content is click-able - this way the alert can be dragged from anywhere else. However you could achieve the desired, but you would loose the drag drop functionality. What you need to do is to hook to the Loaded event RadDesktopAlert and set the CaptionHeight property of the parent WindowBase to 0:

    void alert_Loaded(object sender, RoutedEventArgs e)
    {
        var parentWindow = (sender as RadDesktopAlert).ParentOfType<WindowBase>();
        if (parentWindow != null)
        {
            parentWindow.CaptionHeight = 0;
        }
    }

    Hope this helps.

    Regards,
    Kalin
    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.
  3. Jai
    Jai avatar
    14 posts
    Member since:
    Feb 2017

    Posted 14 Mar Link to this post

    Thanks Kalin & Telerik Team

    I am able to achieve my requirement from your above answer.

     

  4. Jai
    Jai avatar
    14 posts
    Member since:
    Feb 2017

    Posted 12 Apr in reply to Kalin Link to this post

    Hi Kalin,

    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 :)

  5. Nasko
    Admin
    Nasko avatar
    681 posts

    Posted 13 Apr Link to this post

    Hi,

    Please, check the following forum thread that provides detailed information how to achieve the desired functionality - a sample project is also provided:
    http://www.telerik.com/forums/wpf-raddesktopalert-with-buttons

    Hope this helps.

    Regards,
    Nasko
    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