Home > DeveloperSection > Forums > How can I set image in a wpf button?
jayprakash sharma
jayprakash sharma

Total Post:117

Points:821
Posted on    September-04-2013 1:50 AM

 WPF WPF 
Ratings:


 1 Reply(s)
 863  View(s)
Rate this:

How can I set image in a wpf button?



Sumit Kesarwani

Total Post:378

Points:2694
Posted on    September-04-2013 6:55 AM

Hi Jayprakash ,
You can try this:-

<Button Height="23" HorizontalAlignment="Left" Name="button1" >

             <StackPanel Orientation="Horizontal">

                <TextBlock> Browser</TextBlock>

                <Image Source="Image Path" Height="20" Width="20"> </Image>

                </StackPanel>

        </Button>


Don't want to miss updates? Please click the below button!

Follow MindStick