阅读背景:

WPF学习笔记——为BUTTON添加背景图片

来源:互联网 

首先要肯定,代码:

    <Style x:Key="UserItemButton" TargetType="Button">
        <Setter Property="BorderBrush"  Value="Transparent"></Setter>
        <Setter Property="FocusVisualStyle" Value="{x:Null}"/>    
        <Setter Property="Background">
            <Setter.Value>
                <ImageBrush ImageSource="/wpffirst;component/Assets/Images/User/transparent.gif" Stretch="Fill"/>
            </Setter.Value>
        </Setter>
    </Style>    <Style x:Key="UserItemButton



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: