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

在附加托管调试器并向另一个元素的可视化树中添加任何元素或从中删除任何元素时发生,无论任一一方元素是否是任何其他特定元素的后代。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.

适用于