System.Windows.Documents Na ...


.NET Framework Class Library
AdornerDecorator Class

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
Syntax

Visual Basic (Declaration)
Public Class AdornerDecorator _
    Inherits Decorator
Visual Basic (Usage)
Dim instance As AdornerDecorator
C#
public class AdornerDecorator : Decorator
Visual C++
public ref class AdornerDecorator : public Decorator
JScript
public class AdornerDecorator extends Decorator
XAML Object Element Usage
<AdornerDecorator>
  Child
</AdornerDecorator>
Exceptions

ExceptionCondition
ArgumentException

Raised an attempt is made to add more than a single childe to the AdornerDecorator.

Remarks

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.

Inheritance Hierarchy

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
Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms

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.
Version Information

.NET Framework

Supported in: 3.5, 3.0
See Also

Reference

AdornerDecorator

Other Resources

Tags :


Community Content

Roman 544
Restrictions
IT does not work when hosting wpf control on the WinForms window.

What i like in MS - you never publish restrictions.


Tags :

Page view tracker