Skip to main content

AttachDevTools(TopLevel, DevToolsOptions) Method

Attaches DevTools to a window, to be opened with the specified options.

Definition​

Namespace: Avalonia
Assembly: Avalonia.Diagnostics (in Avalonia.Diagnostics.dll)

public static void AttachDevTools(
this TopLevel root,
DevToolsOptions options
)

Parameters​

  TopLevel
The window to attach DevTools to.
  DevToolsOptions
Additional settings of DevTools.

Usage Note​

In Visual Basic and C#, you can call this method as an instance method on any object of type TopLevel. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also​

Reference​

DevToolsExtensions Class
AttachDevTools Overload
Avalonia Namespace