Hi,
Since UI WPF Q3 2015, I notice change in the GridView column auto size. I have the following simple user control (with no height and width) :
<
UserControl
x:Class
=
"WpfApplication1.UserControl1"
xmlns:local
=
"clr-namespace:WpfApplication1"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
Grid
>
<
telerik:RadGridView
AutoGenerateColumns
=
"False"
>
<
telerik:RadGridView.Columns
>
<
telerik:GridViewDataColumn
Header
=
"Name"
Width
=
"150"
/>
<
telerik:GridViewDataColumn
Header
=
"Description"
Width
=
"*"
/>
</
telerik:RadGridView.Columns
>
</
telerik:RadGridView
>
</
Grid
>
</
UserControl
>
In my MainWindow I have a button which show a RadWindow with the UserControl content :
private
void
OnClick(
object
sender, RoutedEventArgs e)
{
RadWindow window =
new
RadWindow();
window.SizeToContent =
true
;
window.Content =
new
UserControl1();
window.SizeChanged +=
delegate
{
window.Header =
string
.Format(
"({0}, {1})"
, window.Height, window.Width);
};
window.ShowDialog();
}
In Telerik 2015.2.728.45, the RadWindow size is correct (like i expect in fact). In Telerik 2015.3.* the gridcolumn with Width="*" take all width possible (infinite?) and radwindow Width become infinite.
What's the correct behavior ? Telerik 2015.2 or 2015.3 ? Do I need to set the UserControl size ? (I prefer to avoid this solution like my real application is more complex and expect to have an UserControl resize from its content).
Thanks
Regards
Luc