How to embed Rectangle inside a Button in Xaml ?


This content was proof-read by Grammarly. You can Try Grammary for FREE

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
%d bloggers like this: