Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Shape inside a button
3 replies. Latest Post by roomygupta on September 8, 2008.
(0)
ikerfern...
Member
22 points
28 Posts
09-07-2008 9:13 AM |
Hi
I want to draw a rectangle or any shape inside a button which covers the entire button area. I am not able to do this using mark up
<Button x:Name="Btn1" Content="Button1">
<Rectangle Width="50" Height="50" Fill="Blue" /> </Button>
thanks.
Bill Reiss
Contributor
4840 points
919 Posts
09-07-2008 9:35 AM |
If you don't specify a width and height on the Rectangle, it will grow to fill the available space in the button.
davidezo...
5690 points
875 Posts
09-07-2008 9:46 AM |
Hi,
try with this code:
roomygupta
82 points
62 Posts
09-08-2008 4:35 AM |
Helllo.. You can edit button and can create any shape.. you just right click on button and go to edit a template.