Table of Contents

Property CommandsListener

Namespace
Alternet.Scripter.Debugger.UI.Wpf
Assembly
Alternet.Scripter.Debugger.UI.Wpf.v9.dll

CommandsListener

Gets or sets a list of the Debugger commands for the Debugger UI.

public IDebuggerUICommands CommandsListener { get; set; }

Property Value

IDebuggerUICommands

Examples

Here is how to use a CommandsListener in the C# code:

using System;
using System.Diagnostics;
using System.Windows;

using Alternet.Scripter.Debugger;
using Alternet.Scripter.Debugger.UI.Wpf;

public partial class MainWindow : Window, IDebuggerUICommands
{
    private DebuggerControlToolbar debuggerControlToolbar;
    private void Window_Loaded(object sender, RoutedEventArgs e)
    {
        var debugger = new ScriptDebugger();

        debuggerControlToolbar = new DebuggerControlToolbar();
        debuggerControlToolbar.Debugger = debugger;
        debuggerControlToolbar.CommandsListener = this;
    }
}

Here is how to use a CommandsListener in the Visual Basic code:

Imports System
Imports System.Diagnostics
Imports System.Windows


Imports Alternet.Scripter.Debugger
Imports Alternet.Scripter.Debugger.UI.Wpf

Partial Public Class MainWindow
    Inherits Window
    Implements IDebuggerUICommands
    Private debuggerControlToolbar As DebuggerControlToolbar
    Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim debugger = New ScriptDebugger()

        debuggerControlToolbar = New DebuggerControlToolbar()
        debuggerControlToolbar.Debugger = debugger
        debuggerControlToolbar.CommandsListener = Me
    End Sub
End Class

Remarks

CommandsListener contains a custom implementation of the IDebuggerUICommands list. It can be used in addition to DefaultCommands, its default analog.