Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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)
XML Namespace:  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
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.

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 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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.