Export (0) Print
Expand All

AttachedPropertyBrowsableForTypeAttribute Class

Specifies that an attached property is browsable only for elements that derive from a specified type.

Namespace:  System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = true)]
public sealed class AttachedPropertyBrowsableForTypeAttribute : AttachedPropertyBrowsableAttribute
You cannot directly create an instance of this class in XAML.

The meaning of the term browsable as used in descriptions for this .NET Framework attribute is analogous to the descriptions given for BrowsableAttribute, but the browsable state for an attached property is particularly relevant to property information for Extensible Application Markup Language (XAML), because an attached property is primarily a XAML concept.

If more than one type is specified for a AttachedPropertyBrowsableForTypeAttribute .NET Framework attribute, the property is browsable if any specified type matches (logical or). The type can also be an interface.

This  .NET Framework attribute specifies AllowMultiple true.

This .NET Framework attribute should only be applied on the get accessor of attached property definitions. Do not apply this .NET Framework attribute to the set accessor. Although intuitively it is the set operation that is being made browsable for XAML on relevant elements, it is the presence and characteristics of the get accessor on the property defining element that controls the true behavior.

For general information on declaring attached properties, see Attached Properties Overview.

System.Object
  System.Attribute
    System.Windows.AttachedPropertyBrowsableAttribute
      System.Windows.AttachedPropertyBrowsableForTypeAttribute

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0

Community Additions

ADD
Show:
© 2014 Microsoft