RequiresContextItemAttribute Class

Indicates that the class relies on the specified context.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class RequiresContextItemAttribute _
    Inherits RequirementAttribute
'Usage
Dim instance As RequiresContextItemAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class RequiresContextItemAttribute : RequirementAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class RequiresContextItemAttribute sealed : public RequirementAttribute
public final class RequiresContextItemAttribute extends RequirementAttribute

Remarks

You can apply RequiresContextItemAttribute to any feature providers, any feature connectors, or select classes that are offered by feature providers. The class is not instantiated until all context items it requires are available.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.Windows.Design.RequirementAttribute
      Microsoft.Windows.Design.RequiresContextItemAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RequiresContextItemAttribute Members

Microsoft.Windows.Design Namespace

RequiresServiceAttribute

UsesItemPolicyAttribute

FeatureProvider

FeatureConnector<TFeatureProviderType>

Other Resources

Feature Providers and Feature Connectors

Understanding WPF Designer Extensibility