<Style x:Key="IconButton" TargetType="{x:Type Button}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Grid Background="{TemplateBinding Background}">
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition />
</Grid.RowDefinitions>
<Image Width="90" Height="90" Source="/images/test.png" Grid.Row="0"></Image>
<ContentPresenter Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="Background" Value="{x:Null}"/>
<Setter Property="Foreground" Value="#000000"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#dedede"/>
</Trigger>
</Style.Triggers>
</Style>
<Button Style="{StaticResource IconButton}" Click="PdfToExcel_Click" HorizontalAlignment="Center" VerticalAlignment="Center" Width="120" Height="120">股东名册PDF转Excel</Button>