HOW CAN I SET IMAGE IN A WPF BUTTON?

jayprakash sharma

Total Post:117

Points:821
Posted by  jayprakash sharma
WPF 
WPF
 1202  View(s)
Ratings:
Rate this:

How can I set image in a wpf button?

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: How can I set image in a wpf button?

    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>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!