Share via


ExtensionMethods.IsConnectedToPresentationSource(DependencyObject) Method

Definition

Used to determine if a given DependencyObject is rooted in a PresentationSource. In order to determine screen coordinates from relative coordinates, this element has to be rooted in a PresentationSource. It can also tell us whether something is presently in the visual tree or not.

public:
[System::Runtime::CompilerServices::Extension]
 static bool IsConnectedToPresentationSource(System::Windows::DependencyObject ^ obj);
public static bool IsConnectedToPresentationSource (this System.Windows.DependencyObject obj);
static member IsConnectedToPresentationSource : System.Windows.DependencyObject -> bool
<Extension()>
Public Function IsConnectedToPresentationSource (obj As DependencyObject) As Boolean

Parameters

Returns

Applies to