WPF 的RenderTransform使图标旋转180°

只是记录一下思想:

本来想找两个对称的图标给按钮用,但是另一个找不到,就想到可不可以旋转180°实现另一个图标的效果,问了一下DeepSeek:

XML 复制代码
<Path Width="30" Height="30" Margin="1"
      Data="{StaticResource DownMove1Geometry}"
      Fill="{telerik:VisualStudio2019Resource ResourceKey=IconBrush}"
      Stretch="Uniform">
    <Path.RenderTransform>
        <RotateTransform Angle="180" CenterX="15" CenterY="15"/>
    </Path.RenderTransform>
</Path>

其中的RenderTransform就是 WPF中在渲染阶段应用的简单变换。还有其他很多复杂的变换,可以自行搜索了解。

相关推荐
FuckPatience11 小时前
WPF 具有跨线程功能的UI元素
wpf
诗仙&李白13 小时前
HEFrame.WpfUI :一个现代化的 开源 WPF UI库
ui·开源·wpf
He BianGu15 小时前
【笔记】在WPF中Binding里的详细功能介绍
笔记·wpf
He BianGu19 小时前
【笔记】在WPF中 BulletDecorator 的功能、使用方式并对比 HeaderedContentControl 与常见 Panel 布局的区别
笔记·wpf
123梦野2 天前
WPF——效果和可视化对象
wpf
He BianGu2 天前
【笔记】在WPF中Decorator是什么以及何时优先考虑 Decorator 派生类
笔记·wpf
时光追逐者2 天前
一款专门为 WPF 打造的开源 Office 风格用户界面控件库
ui·开源·c#·.net·wpf
He BianGu2 天前
【笔记】介绍 WPF XAML 中 Binding 的 StringFormat详细功能
笔记·wpf
Rotion_深3 天前
C# WPF使用线程池运行Action方法
c#·wpf·线程池
攻城狮CSU4 天前
WPF 深入系列.2.布局系统.尺寸属性
wpf