Click or drag to resize

WindowAspectsGetFrameworkElementAbsoluteScreenPosition Method

Absolute screen position of the centre of the associated control.

Namespace: Vishnu.Interchange
Assembly: Vishnu.Interchange (in Vishnu.Interchange.dll) Version: 1.0.0+df0404e911d6c38eaed3bb1bb1acfc482d417643
Syntax
public static Point GetFrameworkElementAbsoluteScreenPosition(
	
	FrameworkElement? frameworkElement,
	
	bool failOnErrors = false
)

Parameters

frameworkElement  FrameworkElement
The element whose position is to be determined.
failOnErrors  Boolean  (Optional)
If false (default), a replacement position is returned for NullReferenceException.

Return value

Point
Absolute screen position of the centre of the associated control.
Exceptions
ExceptionCondition
NullReferenceExceptionOccurs when the element itself is not visible.
See also