【ArcGISProSDK】刷新按钮样式

效果

代码

样式

XML 复制代码
<Style
    TargetType="{x:Type Button}"
    BasedOn="{StaticResource Esri_SimpleButton}"
    x:Key="OptionsResetButtonStyle">    
    <Setter
        Property="Width"
        Value="24" />
            <Setter
        Property="Height"
        Value="24" />
            <Setter
        Property="MinWidth"
        Value="20" />
            <Setter
        Property="MinHeight"
        Value="20" />
            <Setter
        Property="BorderThickness"
        Value="0" />
            <Setter
        Property="VerticalAlignment"
        Value="Top" />
    <Setter
        Property="Padding"
        Value="2" />
    <Setter
        Property="ContentTemplate">
        <Setter.Value>
            <DataTemplate>
                <Image
			    Stretch="Uniform"
			    Source="{StaticResource GenericReset16}" />
            </DataTemplate>
        </Setter.Value>
    </Setter>
</Style>

引用

XML 复制代码
<Button
        Margin="6,0,0,0"
        HorizontalAlignment="Left"
        Grid.Column="1"
        Style="{StaticResource OptionsResetButtonStyle}"
        Command="{Binding XXXXXX}" />
相关推荐
没有bug.的程序员2 天前
SOA、微服务、分布式系统的区别与联系
java·jvm·微服务·架构·wpf·日志·gc
Macbethad2 天前
基于WPF的半导体设备配方管理程序技术方案
wpf
FuckPatience2 天前
WPF Geometry
wpf
武藤一雄3 天前
.NET 中常见计时器大全
microsoft·微软·c#·.net·wpf·.netcore
MarkHD3 天前
车辆TBOX科普 第70次 AUTOSAR Adaptive、容器化与云原生的融合革命
云原生·wpf
极客智造3 天前
WPF Behavior 实战:自定义 InvokeCommandAction 实现事件与命令解耦
wpf
L、2183 天前
Flutter 与 OpenHarmony 深度集成:构建分布式多端协同应用
分布式·flutter·wpf
布伦鸽3 天前
C# WPF -MaterialDesignTheme 找不到资源“xxx“问题记录
开发语言·c#·wpf
小二·3 天前
MyBatis基础入门《十五》分布式事务实战:Seata + MyBatis 实现跨服务数据一致性
分布式·wpf·mybatis
helloworddm4 天前
UnregisterManyAsync
wpf