WPF Button带图标和文本
图片属性先设置:始终复制>>Resource
<Button x:Name="btnRefresh" HorizontalContentAlignment="Right" Click="btnRefresh_Click" Height="22" >
<Button.Template>
<ControlTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Image Width="16" Height="16" Source="../../Resources/Image/refresh.png" />
<TextBlock Grid.Column="1" Height="19" Text=" 刷新" Foreground="#2F54EB" HorizontalAlignment="Left"></TextBlock>
</Grid>
</ControlTemplate>
</Button.Template>
</Button>
Grid里面可以随意放你自己想要的,可自行尝试。