Provides an adorner layer for elements beneath it in the visual tree.
Namespace:
System.Windows.Documents
Assembly:
PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Visual Basic (Declaration)
Public Class AdornerDecorator _
Inherits Decorator
Dim instance As AdornerDecorator
public class AdornerDecorator : Decorator
public ref class AdornerDecorator : public Decorator
public class AdornerDecorator extends Decorator
XAML Object Element Usage
<AdornerDecorator>
Child
</AdornerDecorator>
| Exception | Condition |
|---|
| ArgumentException | Raised an attempt is made to add more than a single childe to the AdornerDecorator. |
An AdornerDecorator can contain only one child, which is the parent element for the visual tree below the AdornerDecorator.
The AdornerDecorator is intended to be used for styling.
System..::.Object
System.Windows.Threading..::.DispatcherObject
System.Windows..::.DependencyObject
System.Windows.Media..::.Visual
System.Windows..::.UIElement
System.Windows..::.FrameworkElement
System.Windows.Controls..::.Decorator
System.Windows.Documents..::.AdornerDecorator
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
Reference
AdornerDecorator
Other Resources