DragCanvasFindCanvasChild Method

Walks up the visual tree starting with the specified DependencyObject, looking for a UIElement which is a child of the Canvas. If a suitable element is not found, null is returned. If the 'depObj' object is a UIElement in the Canvas's Children collection, it will be returned.

Definition

Namespace: MbcsCentral
Assembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
C#
public UIElement FindCanvasChild(
	DependencyObject depObj
)

Parameters

depObj  DependencyObject
A DependencyObject from which the search begins.

Return Value

UIElement

See Also