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

RadWindow with SizeToContent="True" not resized

5 Answers 357 Views
Window
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 23 Oct 2014, 09:08 AM
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?

5 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 23 Oct 2014, 01:20 PM
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.

 
0
Anatoliy
Top achievements
Rank 2
answered on 08 Apr 2015, 06:42 AM
Hi Telerik team, 

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

All the best,
Anatoliy
0
Nasko
Telerik team
answered on 09 Apr 2015, 01:23 PM
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.

 
0
Anatoliy
Top achievements
Rank 2
answered on 08 Apr 2016, 11:52 AM

Hello Telerik,

 Does something get off the ground with build 2015.3.1104?

0
Nasko
Telerik team
answered on 11 Apr 2016, 06:09 AM
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.
Tags
Window
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Anatoliy
Top achievements
Rank 2
Share this question
or