简体   繁体   English

如何在Windows Mobile表单中为按钮设置背景图片?

[英]How can i set background image for a button in windows mobile form?

I am new to windows mobile. 我是Windows Mobile的新手。 I need to set a background image for the BUTTON but i can see only the option to set background color. 我需要为按钮设置背景图像,但我只能看到设置背景颜色的选项。 How can i set the background image. 如何设置背景图像。

Thanks 谢谢

Here is the example of what you are looking for 这是您要寻找的示例

<Button x:Name="btnEventsS" Style="{StaticResource ButtonStyle1}" HorizontalAlignment="Left" Height="93" Width="105" BorderThickness="0" Margin="-26,-10,0,0" Visibility="Collapsed" Click="btnEventsS_Click">
        <Button.Background>
                <ImageBrush ImageSource="Images/events-over.png" Stretch="None"/>
        </Button.Background>
    </Button>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM