There are four ways to set a property in XAML. Different syntaxes are supported by different properties.
<elementName PropertyName="Value"/>
The value of course is from the type of the property.
<elementName> <elemenName.PropertyName> Value </elemenName.PropertyName> </elementName>
<elementName>
<elemenName.PropertyName>
Value
</elemenName.PropertyName>
</elementName>
C#
[ContentProperty("PropertyName")] public class SomeClass { ... public PropertyType PropertyName {get;set;} ... } XAML <SomeClass> Value </SomeClass>
[ContentProperty("PropertyName")]
public class SomeClass
{
...
public PropertyType PropertyName {get;set;}
}
<SomeClass>
</SomeClass>
XAML
<elementName> <collectionName> <elementOfColloectionType/> ... <elementOfColloectionType/> </collectionName> </elementName>
<collectionName>
<elementOfColloectionType/>
</collectionName>
<elementName> <elementOfColloectionType/> ... <elementOfColloectionType/> </elementName>
That's it