Auto-Height?

4 posts, 0 answers
  1. Ludwig
    Ludwig avatar
    9 posts
    Member since:
    Oct 2014

    Posted 30 Jun 2015 Link to this post

    Hello!

     

    Is there a possibility to set the height to auto for the alerts? I can set double.NaN to the height programmatically, but in this case some alerts are overlapping others.

    kind regards!

  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 01 Jul 2015 Link to this post

    Hello Ludwig,

    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ludwig
    Ludwig avatar
    9 posts
    Member since:
    Oct 2014

    Posted 02 Jul 2015 Link to this post

    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

     

  5. Masha
    Admin
    Masha avatar
    355 posts

    Posted 07 Jul 2015 Link to this post

    Hello Ludwig,

    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top