ExtensionMethods.IsConnectedToPresentationSource(DependencyObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- obj
- DependencyObject