Jason

Jason

  • NA
  • 3
  • 0

[C#] WPF Button with Image and Text

Apr 18 2010 9:23 AM

I wasn't sure whether or not to put this in C#, WPF, or XAML, but hopefully this will work.
I'm trying to use C# and WPF to enter buttons that have a picture next to them. I followed this tutorial:
http://www.c-sharpcorner.com/Resources/Detail.aspx?ResourceId=629
But it seems like once you use the image like that, it fills it in as the "content", therefore text cannot be typed.
Is there any easy way to just put a picture on the left side of the button, and text to the right? I really rather not modify every image with the text just to have this happen.
 
Thanks everyone.

Answers (4)