<Button BorderBrush="Transparent">
<Button.Background>
 <ImageBrush ImageSoure="..."/>
</Button.Background>
</Button>

解决方案 »

  1.   

    <Style x:Key="btnStyle" TargetType="{x:Type Button}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Button}">
                            <Grid>
                                <Image Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Source="{TemplateBinding Content}" Stretch="Fill">
                                </Image>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style><Button  Style="{StaticResource btnStyle}" Content="图片路径" />
      

  2.   

    <Style x:Key="btnStyle" TargetType="{x:Type Button}">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type Button}">
                            <Grid>
                                <Image Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" Source="{TemplateBinding Content}" Stretch="Fill">
                                </Image>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
    <Button  Style="{StaticResource btnStyle}" Content="图片路径" Height="100" Width="100" />
      

  3.   


    http://nonocast.cn/button-in-wpf2/
    要重写 template
      

  4.   


    <style x:key="abc" TargetType="Button">
    <Setter Property="Control.Template">
                <Setter.Value>
                    <ControlTemplate TargetType="{x:Type Button}">
                        <Border x:Name="Chrome" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" SnapsToDevicePixels="true">
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
                        </Border>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
    </style><button Name = "Button1" style={StaticResource abc} />