【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}" />
相关推荐
dalong1014 小时前
WPF:3D正四面体自动旋转
3d·wpf
He BianGu15 小时前
【WPF-Control】二次开发总览
wpf
绿浪198418 小时前
WPF 后台刷新界面总结
wpf
绿浪19842 天前
WPF UI标准流水线
ui·wpf
心平气和量大福大2 天前
C#-WPF-控件-LiveChart图表-线性2(LineSeries)-数据绑定
开发语言·c#·wpf
绿浪19842 天前
WPF 防重入,时序错乱详解
wpf
whn19773 天前
oracle的节点2无法启动asm实例 提示PMON terminating the instance due to error 481
数据库·oracle·wpf
完美火龙篇 四月的友3 天前
WPF 笔迹延迟优化从硬件到软件的全链路分析
wpf
dalong103 天前
WPF:3D立方体
3d·wpf
Xin_ye100864 天前
第三章:内存泄漏的常见“案发现场”
c#·wpf