Auto resizing of the RadWindow on runtime

3 posts, 0 answers
  1. Lukas
    Lukas avatar
    20 posts
    Member since:
    Jul 2011

    Posted 21 Feb 2013 Link to this post

    Hello Telerik,

    regarding this thread, I'd like to know if this issue still is not fixed? We really try to make it work, but the RadWindow doesn't resize, when its content size is changed.

    Is there something required like setting the MinHeight?

    If it works properly, I'd really like to know which properties need to be set to certain values, because I can't figure it out from the documentation.

    EDIT: currently we achieve the behaviour we'd like to have through hacking the contents ActualHeight into the RadWindows Height property (content's OnSizeChanged event). We prevent layout cycles through a couple of if-statements, but we'd really like to get rid of this.
  2. Vladi
    Vladi avatar
    749 posts

    Posted 26 Feb 2013 Link to this post

    Hello Lukas,

    This issue was resolved and the Public Issue Tracker System item was updated.

    Could you try to reproduce the issue with our latest released version of RadWindow and let is know if you are experiencing any issues? Note that if you first set the SizeToContent of the control to True and then you resize it the SizeToContent property is set to False and its functionality is stopped.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. tung ngie
    tung ngie avatar
    14 posts
    Member since:
    Nov 2009

    Posted 20 Dec 2013 Link to this post

    Hi Vladi

    My project faces the same issue on Japanese OS.
    We created a customised message box view (user control) and put it into a dialog view (made of RadWindow).
    The message box view has a grid which contains a text block (with TextWrapping=Wrap), a content control and a scroll viewer, each in a row. (Content Control and ScrollViewer content are TextBlock with TextWrapping=Wrap, created by ViewModel.)
    The scroll viewer will appear only when a toggle button (labeled 'More details) is checked. By default, it is unchecked. so the scroll viewer is not shown.

    On Japenese OS, and our message box view is set with MaxWidth of 600, the dialog view (RadWindow) does not grow when the toggle button is checked.
    On English OS, it is working fine, though at times it doesn't grow when the content control's content is null.
    Any help will be great.

    WPF RadControl 2013 Q3 (as i understand from the Property of the reference the project is using.)

Back to Top