3 Answers, 1 is accepted
With the current implementation of the control there should be a Height initially set to a particular number in order for the Alert be positioned correctly on the screen. However can you please share some more details regarding the exact user case? We will consider supporting such scenario for the official release of RadDesktopAlert. Also any additional feedback on the current features of the control and on any desired ones would be highly appreciated.
I'm looking forward to hearing from you.
Regards,
Kalin
Telerik
Hello!
I am using the DesktopAlert to show some information to the users (for example a save-ok-message). In some cases the message could be more than 3 lines, for example you can see my problem in following code:
var alert = new RadDesktopAlert();alert.Header = "Test Message";alert.Content = "test1 \r\n test2 \r\n test3 \r\n test4 \r\n test5";alert.ShowDuration = 10000;RadDesktopAlertManager manager = new RadDesktopAlertManager(AlertScreenPosition.TopRight);manager.ShowAlert(alert);
var alert =
new
RadDesktopAlert();
alert.Header =
"Test Message"
;
alert.Content =
"test1 \r\n test2 \r\n test3 \r\n test4 \r\n test5"
;
alert.ShowDuration = 10000;
RadDesktopAlertManager manager =
new
RadDesktopAlertManager(AlertScreenPosition.TopRight);
manager.ShowAlert(alert);
In this case I only see 3 lines (test1, test2 and test3) in the alert.
I tried to set the Height of the alerts to double.NaN, but it seems that something in the control uses the height-property instead of the actualheight-property, so in this case the messages overlap others and "do not know where to go". I hope my explanation is understandable.
Is there a possible workaround for this problem?
kind regards
I'm afraid the desired approach is not supported in current version of RadDesktopAlert. I can suggest you modifying the RadDeskotpAlert control template and adding a ScrollViewer in it. Please note you still need to add Height property for RadDesktopAlert style in order the RadDesktopAlert to be properly positioned.
I've created a sample project which demonstrates this approach where the ScrollViewer is customized for the VisualStudio2013 theme.
I hope this helps.
Regards,
Masha
Telerik