Property Elements Example in Xaml for Simple Properties


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

In Xaml , you can use the property element for simple properties as well . For example , you can set the Height and width of the Button control in Xaml using the property element syntax instead of attributes.

Below is the sample code snippet demonstrating this.


Are you a .NET Developer planning to integrate GraphQL for .NET in your Application? Check out this book

Property Elements Example in Xaml for Simple Properties

<Button>
    <Button.Content>
        Click Abundantcode 
    </Button.Content>
    <Button.Width>
        200
    </Button.Width>
    <Button.Height>
        200
    </Button.Height>
</Button>
%d bloggers like this: