<Window x:Class="WpfApp04.TestWin10"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:WpfApp04"
mc:Ignorable="d"
Title="TestWin10" Height="450" Width="800">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Button Content="OK" Width="80" Height="80" HorizontalAlignment="Left" VerticalAlignment="Top">
<Button.RenderTransform>
<TransformGroup>
<TranslateTransform X="300" Y="200"/>
<RotateTransform Angle="45" CenterX="40" CenterY="40"/>
</TransformGroup>
</Button.RenderTransform>
</Button>
</Grid>
</Window>
wpf 呈现变形(RenderTransform)
最新推荐文章于 2024-06-25 15:03:08 发布