XamlDeferLoadAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that a class or property has a deferred load usage for XAML (such as a template behavior), and reports the class that enables the deferring behavior and its destination/content type.
public ref class XamlDeferLoadAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public sealed class XamlDeferLoadAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type XamlDeferLoadAttribute = class
inherit Attribute
Public NotInheritable Class XamlDeferLoadAttribute
Inherits Attribute
- Inheritance
- Attributes
Remarks
XamlDeferringLoader is possibly involved in defer load scenarios as a support class.
WPF Usage Notes
An example class where this attribute is applied in the WPF XAML implementation is TemplateContent.
Constructors
| Name | Description |
|---|---|
| XamlDeferLoadAttribute(String, String) |
Initializes a new instance of the XamlDeferLoadAttribute class, using string names of types. |
| XamlDeferLoadAttribute(Type, Type) |
Initializes a new instance of the XamlDeferLoadAttribute class, using CLR Type values. |
Properties
| Name | Description |
|---|---|
| ContentType |
Gets the CLR Type value for the destination/content type of the defer load behavior. |
| ContentTypeName |
Gets the string name of the type for the implementation to use for the defer load behavior. |
| LoaderType |
Gets the CLR Type value for the implementation to use for the defer load behavior. |
| LoaderTypeName |
Gets the string name of the type for the destination/content type of the defer load behavior. |