Hi,
I have a UserControl that uses a ScaleTransform:
When I use this control in a RadWindow the content is bigger than the window:
How should I fix this?
Thanks,
Dumi.
I have a UserControl that uses a ScaleTransform:
<
UserControl
x:Class
=
"Test.View.X"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"80"
d:DesignWidth
=
"100"
>
<
Canvas
Width
=
"100"
Height
=
"80"
Background
=
"Aqua"
>
<
Canvas.RenderTransform
>
<
ScaleTransform
ScaleX
=
"1.5"
ScaleY
=
"1.5"
/>
</
Canvas.RenderTransform
>
</
Canvas
>
</
UserControl
>
When I use this control in a RadWindow the content is bigger than the window:
RadWindow window =
new
RadWindow();
window.Content =
new
XView();
window.WindowStartupLocation = Telerik.Windows.Controls.WindowStartupLocation.CenterScreen;
window.TopOffset = -40;
window.Show();
How should I fix this?
Thanks,
Dumi.