Fields
Xaml Namespace for designer-only attributes such as
d:DataContext, only applied when Control.IsDesignMode is trueProperties
DesignMode
#Gets or sets a value indicating that the reader is used in design mode
Remarks: In Design mode, events are not wired up and will not cause exceptions due to missing methods to wire up to.
Methods
Load<T>
#public static T Load<T>()
Loads the specified type from a xaml of the same name
Remarks: If your class name is MyNamespace.MyType, then this will attempt to load MyNamespace.MyType.xaml for the xaml definition in the same assembly. If you want to specify a different xaml, use Load<T>(Stream)
Returns: A new instance of the specified type with the contents loaded from xaml
Parameters:
| stream (Stream) | |
| instance (T) | |
| settings (XamlReaderSettings) |
Load<T>
#Loads the specified type from the specified xaml stream
Parameters:
| stream (Stream) | Xaml content to load (e.g. from resources) |
| instance (T) | Instance to use as the starting object, or null to create a new instance |
Returns: A new or existing instance of the specified type with the contents loaded from the xaml stream
Load<T>
#Loads the specified type from the specified xaml stream
Remarks: If your class name is MyNamespace.MyType, then this will attempt to load MyNamespace.MyType.xaml for the xaml definition in the same assembly.
Parameters:
| stream (Stream) | Xaml content to load (e.g. from resources) |
Returns: A new instance of the specified type with the contents loaded from the xaml stream
Load<T>
#Loads the specified type from the specified text
reader.Parameters:
| reader (TextReader) | Reader to read the Xaml content |
| instance (T) | Instance to use as the starting object, or null to create a new instance |
Returns: A new or existing instance of the specified type with the contents loaded from the xaml stream
Load<T>
#Loads the specified type from the specified XML
reader.Parameters:
| reader (XmlReader) | XmlReader to read the Xaml content |
| instance (T) | Instance to use as the starting object, or null to create a new instance |
Returns: A new or existing instance of the specified type with the contents loaded from the xaml stream
Load<T>
#Loads the specified instance with a specified fully qualified xaml embedded resource
Remarks: This will load the embedded resource from the same assembly as
instance with the specified resourceName embedded resource. If you want to specify a different xaml, use Load<T>(Stream, T)Parameters:
| instance (T) | Instance to use as the starting object |
| resourceName (string) | Fully qualified name of the embedded resource to load. |
Returns: An existing instance of the specified type with the contents loaded from the xaml stream
Load<T>
#public static void Load<T>(T instance)
Loads the specified instance with xaml of the same name
Remarks: If your class name is MyNamespace.MyType, then this will attempt to load MyNamespace.MyType.xaml for the xaml definition in the same assembly. If you want to specify a different xaml, use Load<T>(Stream, T)
Parameters:
| instance (T) | Instance to use as the starting object |
Returns: A new or existing instance of the specified type with the contents loaded from the xaml stream
Watches the .xeto file for changes and triggers the method specified by the HotReloadAttribute, if any, when the file changes. Otherwise, it will reload the xeto into the control using Load<T>().