Diese Dokumentation wurde archiviert und wird nicht länger gepflegt.

AttachedPropertyBrowsableForTypeAttribute-Klasse

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

Namespace: System.Windows
Assembly: WindowsBase (in windowsbase.dll)
XML-Namespaces:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=true)] 
public sealed class AttachedPropertyBrowsableForTypeAttribute : AttachedPropertyBrowsableAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=true) */ 
public final class AttachedPropertyBrowsableForTypeAttribute extends AttachedPropertyBrowsableAttribute
AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=true) 
public final class AttachedPropertyBrowsableForTypeAttribute extends AttachedPropertyBrowsableAttribute
Sie können diese verwaltete Klasse nicht in XAML verwenden.

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

Alle öffentlichen statischen (Shared in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Anzeigen: