WPF变换可以产生特殊效果,如平移、旋转、扭曲。
变换类 | 描述 |
TranslateTransform | 沿着X轴和Y轴平移 |
ScaleTransform | 沿着定义的中心点缩放 |
RotateTransform | 沿着定义的中心点旋转 |
SkewTransform | 扭曲元素 |
MatrixTransfrom | 提供3x3矩阵,用于定义一个自定义变换 |
1.平移变换(TranslateTransform)
<Window x:Class="WpfApp1.MainWindow"xmlns="http://schemas.microsoft.com/winfx/2006/xaml/pre