LayoutInformation.GetLayoutExceptionElement Method (Dispatcher)

 

Returns a UIElement that was being processed by the layout engine at the moment of an unhandled exception.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

public static UIElement GetLayoutExceptionElement(
	Dispatcher dispatcher
)

Parameters

dispatcher
Type: System.Windows.Threading.Dispatcher

The Dispatcher object that defines the scope of the operation. There is one dispatcher per layout engine instance.

Return Value

Type: System.Windows.UIElement

A UIElement that was being processed by the layout engine at the moment of an unhandled exception.

Exception Condition
ArgumentNullException

Occurs when dispatcher is null.

You can view the result of this operation from an application exception handler to fix problems in the layout of an application.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: