#76 – Two Types of Elements in XAML
September 26, 2010 Leave a comment
In XML, elements are the things surrounded by angle brackets, < >. In XAML, there are two types of elements.
An object element declares an instance of a type.
<Button Name="btnClick" Content="Click Me" Height="23" Width="75"/>
A property element specifies the value of a property. (Button.Background is the property element in this example).
<Button.Background> <SolidColorBrush Color="RosyBrown"/> </Button.Background>