WPF 精修篇 移动TranslateTransform

时间:2022-05-17 07:19:47

原文: WPF 精修篇 移动TranslateTransform

移动 TranslateTransform

X 移动X轴

Y 移动Y轴

 

WPF 精修篇 移动TranslateTransform


  
  
  1. <StackPanel Orientation= "Horizontal">
  2. <Grid>
  3. <Image Source= "Image/Dog.jpg" Width= "200" Height= "200" Opacity= "0.4">
  4. <Image.RenderTransform>
  5. <TranslateTransform></TranslateTransform>
  6. </Image.RenderTransform>
  7. </Image>
  8. <Image Source= "Image/Dog.jpg" Width= "200" Height= "200">
  9. <Image.RenderTransform>
  10. <TranslateTransform X= "200" Y= "100"></TranslateTransform>
  11. </Image.RenderTransform>
  12. </Image>
  13. </Grid>
  14. </StackPanel>
  15. </Grid>