Hi,
when using the Silverlight RadWindow, is there a way to make it auto size to its contents? This is my popup window:
<telerikNavigation:RadWindow x:Name="PopupWindow"
CanClose="True"
CanMove="True"
Header="Edit items"
CloseMode="Close"
WindowStartupLocation="CenterParent"
ResizeMode="CanResize"
Width="790"
Height="250"
HorizontalContentAlignment="Center"
>
<Grid>
<Canvas x:Name="PopupWindowContents">
</Canvas>
</Grid>
</telerikNavigation:RadWindow>
At run time i am selecting a usercontrol, and populating it into the "PopupWindowContents" canvas. The user control consists of a grid with four column definitions (two columns of labels, and two columns of edit controls). The two column definitions for the label columns do not have a width specified, they end up taking up the width of the widest label (which of course is a product of both the font and the length of the string in the label). At the moment i place the control into the canvas, the Width of the control reads as 0 (possibly because the control has been created but not yet rendered?)
As you can see, i am explicity setting the height/width of the RadWindow, which i want to avoid. Can you advise if there is some way i can set the size to that of the usercontrol once it is loaded? (i'm using a trial version of your controls that i downloaded approx 4 weeks ago - great controls BTW!)
Thanks :)
when using the Silverlight RadWindow, is there a way to make it auto size to its contents? This is my popup window:
<telerikNavigation:RadWindow x:Name="PopupWindow"
CanClose="True"
CanMove="True"
Header="Edit items"
CloseMode="Close"
WindowStartupLocation="CenterParent"
ResizeMode="CanResize"
Width="790"
Height="250"
HorizontalContentAlignment="Center"
>
<Grid>
<Canvas x:Name="PopupWindowContents">
</Canvas>
</Grid>
</telerikNavigation:RadWindow>
At run time i am selecting a usercontrol, and populating it into the "PopupWindowContents" canvas. The user control consists of a grid with four column definitions (two columns of labels, and two columns of edit controls). The two column definitions for the label columns do not have a width specified, they end up taking up the width of the widest label (which of course is a product of both the font and the length of the string in the label). At the moment i place the control into the canvas, the Width of the control reads as 0 (possibly because the control has been created but not yet rendered?)
As you can see, i am explicity setting the height/width of the RadWindow, which i want to avoid. Can you advise if there is some way i can set the size to that of the usercontrol once it is loaded? (i'm using a trial version of your controls that i downloaded approx 4 weeks ago - great controls BTW!)
Thanks :)