AttachedPropertyBrowsableWhenAttributePresentAttribute-Klasse
TOC
Inhaltsverzeichnis reduzieren
Inhaltsverzeichnis erweitern

AttachedPropertyBrowsableWhenAttributePresentAttribute-Klasse

Specifies that an attached property is only browsable on an element that also has another specific  .NET Framework attribute applied to its class definition.

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

[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=false)] 
public sealed class AttachedPropertyBrowsableWhenAttributePresentAttribute : AttachedPropertyBrowsableAttribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=false) */ 
public final class AttachedPropertyBrowsableWhenAttributePresentAttribute extends AttachedPropertyBrowsableAttribute
AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple=false) 
public final class AttachedPropertyBrowsableWhenAttributePresentAttribute 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.

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.AttachedPropertyBrowsableWhenAttributePresentAttribute

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:
© 2016 Microsoft