When Iam using Canvas with some controls inside a 'RadWindow', I could not control the size of the controls, the controls are displayed outside the window, irrespective of the size of the window.
Here is a sample test code:
RdWindow with canvas inside:
<Grid x:Name="LayoutRoot" Background="White">
<Button Name="btn" Height="22" Width="70" Content="Click" Margin="10,10,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" Click="Button_Click"></Button>
<telerikNavigation:RadWindow x:Name="win1" Width="auto" Height="auto">
<Canvas>
<StackPanel Orientation="Horizontal">
<TextBlock Name="tblck" Text="Name of Employee:"></TextBlock>
<TextBox Name="txt1" Height="22" Width="140"></TextBox>
<Button Name="btn1" Content="Click" Height="22" Width="80"></Button>
</StackPanel>
</Canvas>
</telerikNavigation:RadWindow>
</
Grid>
RdWindow without canvas inside:
<Grid x:Name="LayoutRoot" Background="White">
<Button Name="btn" Height="22" Width="70" Content="Click" Margin="10,10,0,0" HorizontalAlignment="Center" VerticalAlignment="Top" Click="Button_Click"></Button>
<telerikNavigation:RadWindow x:Name="win1" Width="auto" Height="auto">
<StackPanel Orientation="Horizontal">
<TextBlock Name="tblck" Text="Name of Employee:"></TextBlock>
<TextBox Name="txt1" Height="22" Width="140"></TextBox>
<Button Name="btn1" Content="Click" Height="22" Width="80"></Button>
</StackPanel>
</telerikNavigation:RadWindow>
</
Grid>
Please let me know how to solve this.
Thank you,
Irfan