CleanupAdorner Method
- Last UpdatedAug 21, 2026
- 1 minute read
Similar to Dispose() pattern. CleanupAdorner releases and cleans up objects associated with an adorned element.
Monitoring of the underlying hierarchy item stops if the adorner's UI element is the last one referencing the underlying hierarchy item.
'Declaration
Public Shared Sub CleanupAdorner( _
ByVal adornedElement As FrameworkElement _
)
public static void CleanupAdorner(
FrameworkElement adornedElement
)
public:
static void CleanupAdorner(
FrameworkElement^ adornedElement
)
Parameters
- adornedElement
- The element to adorn.