Class ElementHelper

This class provides utility features related to WPF elements

System.Object
  MarkdownMonster.Controls.ElementHelper
public static class ElementHelper : object

Class Members

MemberDescription

DetachElementFromParent

Detaches an element from its current parrent

public static void DetachElementFromParent(UIElement elementToDetach,     DependencyObject parentElement)

public static void DetachElementFromParent(FrameworkElement element)

FindParent

Finds the parent by walking parentElement.Parent until a parent of a certain type is found, or the end of the chain is reached

public static TType FindParent(FrameworkElement element)

FindVisualTreeParent

Finds the parent by walking the complete visual tree until a parent of a certain type is found, or the end of the chain is reached

public static TType FindVisualTreeParent(FrameworkElement element)

Requirements

Namespace: MarkdownMonster.Controls
Assembly: markdownmonster.exe

© West Wind Technologies, 1996-2021 • Updated: 02/14/20
Comment or report problem with topic