Show / Hide Table of Contents

Class DependencyObjectExtensions

Provides extension methods for the DependencyObject type.

Inheritance
Object
DependencyObjectExtensions
Namespace: Celestial.UIToolkit.Extensions
Assembly: Celestial.UIToolkit.Core.dll
Syntax
public static class DependencyObjectExtensions

Methods

| Improve this Doc View Source

HasVisualAncestor(DependencyObject, DependencyObject)

Returns a value indicating whether the provided ancestor is one of the current dependency object's ancestor in the visual tree.

Declaration
public static bool HasVisualAncestor(this DependencyObject depObj, DependencyObject ancestor)
Parameters
Type Name Description
DependencyObject depObj

The dependency object.

DependencyObject ancestor

A potential ancestor.

Returns
Type Description
Boolean

true if ancestor is part of the object's visual tree; false if not.

| Improve this Doc View Source

RemoveLogicalChild(DependencyObject, UIElement)

Tries to remove the specified child from the elements logical tree.

Declaration
public static void RemoveLogicalChild(this DependencyObject parent, UIElement child)
Parameters
Type Name Description
DependencyObject parent

The parent.

UIElement child

The child to be removed.

  • Improve this Doc
  • View Source
Back to top Copyright © 2018 Celestial.UIToolkit - Impressum