This question is locked. New answers and comments are not allowed.
Hi ,
Senario / Problem:
My RadTabControl are declared in xaml but thru code-behind i used to add RadTabItem added to the UI on demand, like so:
now i hav controls inside RadTabItem that are also dynamic .... and these are added at runtime
now problem is i want resize my Radwindow and on size change i want all my controls automatically shrink and large as per size change of my rad window........
in my xaml i added
Senario / Problem:
My RadTabControl are declared in xaml but thru code-behind i used to add RadTabItem added to the UI on demand, like so:
now i hav controls inside RadTabItem that are also dynamic .... and these are added at runtime
now problem is i want resize my Radwindow and on size change i want all my controls automatically shrink and large as per size change of my rad window........
in my xaml i added
<telerikNavigation:RadTabControl.RenderTransform>
<ScaleTransform x:Name="CanvasScale" ScaleX="1" ScaleY="1" />
</telerikNavigation:RadTabControl.RenderTransform>
</telerikNavigation:RadTabControl>
and in code behind i used
void Layout_SizeChanged(object sender, SizeChangedEventArgs e)
{
double aspectRatio = e.NewSize.Width / e.NewSize.Height;
if (aspectRatio < (ShowTab.Width / ShowTab.Height))
CanvasScale.ScaleX =CanvasScale.ScaleY = e.NewSize.Width / (ShowTab.Width);
else
CanvasScale.ScaleX = CanvasScale.ScaleY = e.NewSize.Height / (ShowTab.Height);
}
then also its not working properly Pls help me, PLEASE