RadWindow AutoResize

2 posts, 0 answers
  1. Donald
    Donald avatar
    4 posts
    Member since:
    Oct 2011

    Posted 17 Nov 2011 Link to this post


    I currently am using a RadWindow as a ModalDialog in a WPF application. The content in the window expands as the user clicks buttons and unlocks more menus. I need the window to adjust automatically to the expanding size of the content.
    Here are my window settings from the xaml file:

    MaxHeight="800"  MaxWidth="730"  SizeToContent="True"  telerik:CanMove="True" telerik:ResizeMode="CanResizeWithGrip" ModalBackground="Transparent" CanClose="False" 
            Background="{x:Null}" Foreground="{x:Null}" WindowStartupLocation="Manual" Style="{DynamicResource LoginWindowStyle}" BorderBackground="{x:Null}" BorderBrush="{x:Null}" MouseLeftButtonDown="MoveLoginBox" HeaderTemplate="{DynamicResource HeaderTemplate}">

    Is there something I am doing wrong or is there a bug somewhere?
    Also, I'm not sure if this is related, I am not able to re-size the window at all. 


  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 22 Nov 2011 Link to this post

    Hi Don,

    The issue is caused by CanResizeWithGrip option set to the ResizeMode. This option is not implemented for RadWindow, we have only reused the enumeration. If you remove the ResizeMode property, which either way doesn't apply correctly with CanResizeWithGrip option set, the issue will disappear.

    Hope this information helps.

    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
  3. DevCraft R3 2016 release webinar banner
Back to Top