Window.LayoutTransform -> Why doesn't this work?

Hi, consider the following code:

<Window x:Class="scaletest.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="scaletest" Height="300" Width="300"
>
<Window.LayoutTransform>
<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="2" ScaleY="2" />
</Window.LayoutTransform>
<StackPanel>
<Button>test</Button>
</StackPanel>
</Window>

Why does the scale transform doesn't do anything? If I put the same transform on the stackpanel.layouttransform, it works, but that's not what i want.

[790 byte] By [Simon] at [2007-12-24]
# 1
The window chrome of your WPF application is not rendered by WPF, but by the OS which doesn't know anything about transforms. Thus it is not possible to scale, skew or rotate your whole window, just the content inside it.
JosephCooney at 2007-10-8 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified