Export (0) Print
Expand All

AttachedPropertyBrowsableWhenAttributePresentAttribute Class

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 Namespace:  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
You cannot use this managed 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.

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

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show:
© 2014 Microsoft