XamlObject Class
Definition
Represents a xaml object element.
Syntax
public sealed class XamlObject : XamlPropertyValue
Properties
ContentPropertyName | Gets the name of the content property. |
ElementType | Gets the type of this object element. |
HasErrors | Gets whether there were load errors for this object. |
Instance | Gets the instance created by this object element. |
IsMarkupExtension | Gets whether this instance represents a MarkupExtension. |
Name | Gets/Sets the name of this XamlObject. |
NameProperty | Gets which property of the type maps to the XAML x:Name attribute. |
OwnerDocument | Gets the XamlDocument where this XamlObject is declared in. |
ParentObject | Gets the parent object. |
PositionXmlElement | |
Properties | Gets a read-only collection of properties set on this XamlObject. This includes both attribute and element properties. |
RuntimeNameProperty | Gets which property name of the type maps to the XAML x:Name attribute. |
ServiceProvider | Gets/Sets the XamlObjectServiceProvider associated with this XamlObject. |
SystemXamlTypeForProperty | Gets a System.Xaml.XamlType representing the ElementType. |
XmlElement |
Methods
FindOrCreateAttachedProperty(Type, String) | Finds the specified property, or creates it if it doesn't exist. |
FindOrCreateProperty(String) | Finds the specified property, or creates it if it doesn't exist. |
GetXamlAttribute(String) | Gets an attribute in the x:-namespace. |
SetXamlAttribute(String, String) | Sets an attribute in the x:-namespace. |
Events
NameChanged | Is raised when the name of this XamlObject changes. |