RadWindow with SizeToContent="True" not resized

6 posts, 0 answers
  1. Dmitry
    Dmitry avatar
    20 posts
    Member since:
    Apr 2011

    Posted 23 Oct 2014 Link to this post

    I am trying to use RadWindow as a Dialog window with XAML similar to this:

      <Grid>
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition Height="100"/>
            </Grid.RowDefinitions>

            <ContentControl x:Name="DialogPresenter" Content="{Binding}" Grid.Row="0" />
            <Grid Grid.Row="1"> ... some grid with OK and Cancel buttons</Grid>
    </Grid>

    But RadWindow was never resized from its initial size (MinWidth and MinHeight were set on window), I tried to move min width and height to first grid, but that did not help either. Why this is not working, and what am I doing wrong here?
  2. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 23 Oct 2014 Link to this post

    Hello Dmitry,

    We are already aware and it has been logged in our internal backlog. However, you could easily track its status in our Feedback portal on the following link:

    http://feedback.telerik.com/Project/143/Feedback/Details/139349-sizetocontent-doenst-work-as-expected-whenever-minheight-minwidth-are-set

    The issue is caused by setting the MinHeight of the Window and any other control inside it. So, I could suggest you not to set MinHeight for the Window and the controls inside it but try to setting Paddings and Margins to achieve the desired appearance.

    I apologize for any inconvenience. Do not hesitate do contact us if you have any additional questions.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Anatoliy
    Anatoliy avatar
    37 posts
    Member since:
    Oct 2012

    Posted 08 Apr 2015 in reply to Nasko Link to this post

    Hi Telerik team, 

    Let me know when and in which version it will be fixed!

    All the best,
    Anatoliy
  5. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 09 Apr 2015 Link to this post

    Hello Anatoliy,

    Currently we cannot commit with any time frame when the issue will be fixed. What we could suggest you would be to follow the item in order to get notified whenever its status is changed.

    We apologize for any inconvenience caused.

    Regards,
    Nasko
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
  6. Anatoliy
    Anatoliy avatar
    37 posts
    Member since:
    Oct 2012

    Posted 08 Apr in reply to Nasko Link to this post

    Hello Telerik,

     Does something get off the ground with build 2015.3.1104?

  7. Nasko
    Admin
    Nasko avatar
    585 posts

    Posted 11 Apr Link to this post

    Hi Anatoliy,

    The bug has been fixed wtih Q3 2015 and the fix is also available with built 2015.3.1104.

    We recommend you to upgrade to our latest official version (Q1 2016 SP1) in order to get access to all new features and fixes including the mentioned one.

    Hope the provided information will be helpful for you.

    Regards,
    Nasko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for WPF is Visual Studio 2017 Ready