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

ContentImage doesn't show icon

2 Answers 62 Views
DesktopAlert
This is a migrated thread and some comments may be shown as answers.
wiquezada
Top achievements
Rank 1
wiquezada asked on 22 Mar 2018, 02:15 PM

Curiously; after the last update thad i did, the icon that I configured in the contentImage isn't shown. It has relation with the update or maybe I am configuring something in an erroneous way.

Thank you so much

 

My code: 

Telerik.WinControls.UI.RadDesktopAlert deskp = new Telerik.WinControls.UI.RadDesktopAlert();
deskp.ContentImage = Properties.Resources.alert_danger;
deskp.ThemeName = "TelerikMetroBlue";
deskp.AutoCloseDelay = 6;
deskp.Opacity = (float)1.0;
deskp.PopupAnimationFrames = 20;
deskp.PopupAnimationDirection = (Telerik.WinControls.UI.RadDirection)Enum.Parse(typeof(Telerik.WinControls.UI.RadDirection), "Up");
deskp.FadeAnimationFrames = 20;
deskp.ShowPinButton = false;
deskp.ShowOptionsButton = false;
deskp.CaptionText = "<html><b><span style=\"font-size:14;color:#44224D;\">" + title + "</span></b></html>";
deskp.FixedSize = new System.Drawing.Size(450, 120);


deskp.ContentText = "<html><span style=\"font-size:12;\">" + msg + "</span></html>";
deskp.Show();

2 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 Mar 2018, 12:57 PM
Hello William,

Thank you for the provided code.

Taking a look at it I get the impression that you are utilizing the UI for Winforms RadDesktopAlert component instead of the UI for WPF one. Can you please confirm this? If this is the case, I would kindly ask you to post  your inquiry in the relevant forum section so we can provide the most adequate assistance.

Thank you in advance for your cooperation.

Regards,
Stefan
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
wiquezada
Top achievements
Rank 1
answered on 05 Apr 2018, 05:41 PM
I'm really sorry, thank you for your help.
Tags
DesktopAlert
Asked by
wiquezada
Top achievements
Rank 1
Answers by
Stefan
Telerik team
wiquezada
Top achievements
Rank 1
Share this question
or