C# 如何向控件添加多个转换?
我想缩放它并旋转它。但是我的控件只接受一个转换,因为它C# 如何向控件添加多个转换?,c#,windows-phone-7,C#,Windows Phone 7,我想缩放它并旋转它。但是我的控件只接受一个转换,因为它.RenderTransform 如何添加ScaleTransform和Rotatetransform?这是从 点击 这是从 点击 也可以使用复合翻译格式:@KooKiz+1;除非需要单独转换,否则CompositeTransform看起来很有希望。也可以使用CompositeTransform:@KooKiz+1;除非需要单独的转换,否则CompositeTransform看起来相当有前途。 <Page xmlns="htt
.RenderTransform
如何添加ScaleTransform和Rotatetransform?这是从
点击
这是从
点击
也可以使用复合翻译格式
:@KooKiz+1;除非需要单独转换,否则CompositeTransform看起来很有希望。也可以使用CompositeTransform
:@KooKiz+1;除非需要单独的转换,否则CompositeTransform看起来相当有前途。
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
<StackPanel Margin="50">
<Button
RenderTransformOrigin="0.5,0.5"
HorizontalAlignment="Center">Click
<Button.RenderTransform>
<!-- TransformGroup enables you to apply multiple transforms. In
this example, the button is scaled and rotated. -->
<TransformGroup>
<!-- Triple the size (scale) of the button in the Y direction. -->
<ScaleTransform ScaleY="3" />
<!-- Rotate the button by 45 degrees. -->
<RotateTransform Angle="45" />
</TransformGroup>
</Button.RenderTransform>
</Button>
</StackPanel>
</Page>