VisualDiagnostics 類別

定義

啟用工具來分析 XAML 視覺化樹狀。Enables tooling for analyzing XAML visual trees.

public ref class VisualDiagnostics abstract sealed
public static class VisualDiagnostics
type VisualDiagnostics = class
Public Class VisualDiagnostics
繼承
VisualDiagnostics

備註

此類型支援 .NET Framework 基礎結構,並不能直接使用於您的程式碼中。This type supports the .NET Framework infrastructure and is not intended to be used directly from your code.

方法

DisableVisualTreeChanged()

停用 VisualTreeChanged 事件。Disables the VisualTreeChanged event.

EnableVisualTreeChanged()

啟用 VisualTreeChanged 事件。Enables the VisualTreeChanged event.

GetXamlSourceInfo(Object)

傳回 XamlSourceInfo 的執行個體,其包含指定物件之 XAML 來源文件的相關資訊。Returns an instance of XamlSourceInfo that contains information about the XAML source document for the specified object.

事件

VisualTreeChanged

無論這些項目是否為任何其他特定項目的子系,只要附加了 Managed 偵錯工具,並有其他視覺化樹狀中的項目加入或移除時,便會發生。Occurs when a managed debugger is attached and any element is added to or removed from the visual tree of another element, regardless of whether either of the elements are descendants of any other specific element.

適用於