【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}" />
相关推荐
samble8 天前
从零搭建半导体设备上位机(九):拖拽与交互,Adorner、DragDrop 与晶圆拖放信息
wpf·拖拽·adorner
郝学胜-神的一滴9 天前
AI 编程智能体 27:吃透MCP通信机制
人工智能·python·langchain·wpf·numpy·scikit-learn
波力海苔夹心脆67510 天前
C# WPF 资源字典详解:ResourceDictionary、MergedDictionaries 与自定义控件案例
开发语言·c#·wpf·入门教程·resource·资源字典
陈仓主教10 天前
# WPF CheckBox 控件详解与使用—WPF 中的控件(6)--复选框控件(CheckBox)
wpf
光泽雨12 天前
WPF 音视频四大核心方案对比
wpf·音视频
浪扼飞舟13 天前
WPF(数据绑定)
wpf
samble14 天前
从零搭建半导体设备上位机(四):单实例、启动流程与配置文件,App 里那 526 行到底在干什么
wpf·配置文件·单实例
浪扼飞舟14 天前
WPF(控件的继承树、内容控件、布局控件)
wpf
avi911117 天前
电影开源Jevdo - 源码介绍(vue版)没有android 和 没有wpf
android·wpf·框架·数据爬虫·meego·电影管理
吾与谁归in18 天前
C#脚本工具,支持智能提示自动补全(WPF + Roslyn + AvalonEdit)
开发语言·c#·wpf