Friday, August 17, 2012

Silverlight Button Background ImageBrush

Silverlight Button Background ImageBrush

I have an image

http://savepic.su/2317454.htm

but wnen i try to set button's background like

<UserControl x:Class="System.Windows.Controls.UserControl" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <Button x:Name="plus_button" Width="30" Height="25">     <Button.Background>         <ImageBrush AlignmentY="Top" Stretch="None" ImageSource="plus_unhover.jpg"></ImageBrush>     </Button.Background> </Button> </UserControl>   

i have
http://savepic.su/2309262.htm
those image in all browsers...
how can i set normal image to background of the button?

and how i can set another image to backgroun onmouseover event of this button in xaml?

Answers & Comments...




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog