Share via


VisualDiagnostics Class

Definition

Provides APIs for capturing source information, monitoring visual tree changes, and capturing screenshots for XAML and UI diagnostics.

public ref class VisualDiagnostics abstract sealed
public static class VisualDiagnostics
type VisualDiagnostics = class
Public Class VisualDiagnostics
Inheritance
VisualDiagnostics

Methods

CaptureAsJpegAsync(IView, Int32)

Captures the given view as a JPEG image asynchronously with specified quality.

CaptureAsJpegAsync(IWindow, Int32)

Captures the given window as a JPEG image asynchronously with specified quality.

CaptureAsPngAsync(IView)

Captures the given view as a PNG image asynchronously.

CaptureAsPngAsync(IWindow)

Captures the given window as a PNG image asynchronously.

GetSourceInfo(Object)

Gets the previously registered source information for a specified object.

OnChildAdded(IVisualTreeElement, IVisualTreeElement, Int32)

Called when a child element is added to the visual tree at a specified logical index; raises VisualTreeChanged event.

OnChildAdded(IVisualTreeElement, IVisualTreeElement)

Called when a child element is added to the visual tree; raises VisualTreeChanged event.

OnChildRemoved(IVisualTreeElement, IVisualTreeElement, Int32)

Called when a child element is removed from the visual tree; raises VisualTreeChanged event.

RegisterSourceInfo(Object, Uri, Int32, Int32)

Registers source file information (URI, line number, and position) for the specified target object when XAML diagnostics are enabled.

Events

VisualTreeChanged

Event fired when the visual tree changes (child added or removed).

Applies to