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

RadWindow AutoResize

1 Answer 118 Views
Window
This is a migrated thread and some comments may be shown as answers.
Donald
Top achievements
Rank 1
Donald asked on 17 Nov 2011, 08:34 PM
Hi, 

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. 


Thanks
Don 

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 22 Nov 2011, 03:34 PM
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.

Regards,
Konstantina
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Window
Asked by
Donald
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or