Reputation: 543
I am new to 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
Upvotes: 1
Views: 1060
Reputation: 2796
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>
Upvotes: 1