[英]How can I set a button background image on iPhone under Monotouch?
[英]How can i set background image for a button in windows mobile form?
我是Windows Mobile的新手。 我需要为按钮设置背景图像,但我只能看到设置背景颜色的选项。 如何设置背景图像。
谢谢
这是您要寻找的示例
<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.