Question - What are the ways you can declare objects in XAML?
Answer -
To declare objects in XAML, there are three ways
- Directly, using object element syntax: This syntax is used to declare root objects or nested objects that set property values
- Indirectly by using attribute syntax: This syntax uses an inline string value which has an instruction on how to create an object. To set the value of the property to a newly created reference, the XAML parser uses this string
- Using a markup extension