Table of Contents

Class DebugOptionsWindow

Namespace
Myra.Graphics2D.UI
Assembly
Myra.dll

A window that provides options for debugging the UI framework.

public class DebugOptionsWindow : Window, IItemWithId, INotifyAttachedPropertyChanged, IContent
Inheritance
DebugOptionsWindow
Implements
Inherited Members

Constructors

DebugOptionsWindow()

Initializes a new instance of the DebugOptionsWindow class.

public DebugOptionsWindow()

Properties

ShowDebugInfo

Gets or sets a value indicating whether debug information should be displayed.

public bool ShowDebugInfo { get; set; }

Property Value

bool

Methods

AddOption(string, Action, Action)

Adds a debug option with callbacks for when it's enabled or disabled.

public void AddOption(string text, Action onEnabled, Action onDisabled)

Parameters

text string

The text label for the option.

onEnabled Action

The action to call when the option is enabled.

onDisabled Action

The action to call when the option is disabled.