This is a migrated thread and some comments may be shown as answers.

No Icon in Desk Alert

3 Answers 131 Views
DesktopAlert
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 12 Feb 2018, 05:30 PM

Hi All,

I am trying to assign an icon from my resources as follows but no icon is displayed. Can anyone help me please?

P.S. This code works elsewhere where I add the image to a canvas

 

        Dim icon As New Image()
        icon.Height = 80
        icon.Width = 80
        icon.Source = New BitmapImage(New Uri("Resources/monitorNoComms.png", UriKind.Relative))
        alert.Foreground = New SolidColorBrush(Colors.White)
        alert.BorderBrush = New SolidColorBrush(Colors.White)
        alert.Header = header
        alert.Content = message
        alert.IconColumnWidth = 80
        alert.Icon = icon
        alert.CanAutoClose = autoClose
        alert.BorderThickness = New Thickness(1)
        manager.ShowAlert(alert)

 

3 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 15 Feb 2018, 02:51 PM
Hello Paul,

I am attaching a sample project which demonstrates how to set an Image as the Icon for a RadDesktopAlert. Please take a look at it and see how it differs from the setup at your end and let me know if you managed to achieve the desired functionality.

Regards,
Vladimir Stoyanov
Progress Telerik
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.
0
Avrohom Yisroel
Top achievements
Rank 1
answered on 10 Dec 2019, 03:14 PM

Hi Vladimir,

I'm getting stuck with the Icon in RadAlertManager. Please can you post a sample project in c#?

Many thanks

0
Vladimir Stoyanov
Telerik team
answered on 12 Dec 2019, 01:36 PM

Hello Avrohom,

Please, find a C# version of the previously attached sample project. 

I hope it helps.

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DesktopAlert
Asked by
Paul
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Avrohom Yisroel
Top achievements
Rank 1
Share this question
or