Below is a sample code demonstrating how to embed a rectangle inside a Button in Xaml .

How to embed Rectangle inside a Button in Xaml ?

<Button Width="100" Height="200">
     <Rectangle Width="70" Height="100" Fill="AliceBlue"></Rectangle>
</Button>
image

Leave a Reply

Your email address will not be published. Required fields are marked *

Liked this content?. Please spread the word :)

  • RSS
  • Twitter
    Visit Us
    Follow Me