Class Output
Interaction logic for Output.xaml.
public class Output : UserControl, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, INotifyPropertyChanged
- Inheritance
-
Output
- Implements
- Extension Methods
Examples
Here is how to declare a Output from the C# code:
using System;
using System.Windows;
using Alternet.Scripter.Debugger;
using Alternet.Scripter.Debugger.UI.Wpf;
public partial class MainWindow : Window
{
private void Window_Loaded(object sender, RoutedEventArgs e)
{
var debugger = new ScriptDebugger();
var outputControl = new Output();
outputControl.Debugger = debugger;
}
}
Here is how to declare a Output from the Visual Basic code:
Imports System
Imports System.Windows
Imports Alternet.Scripter.Debugger
Imports Alternet.Scripter.Debugger.UI.Wpf
Partial Public Class MainWindow
Inherits Window
Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim debugger = New ScriptDebugger()
Dim outputControl = New Output()
outputControl.Debugger = debugger
End Sub
End Class
Remarks
Output is a visual control used to log debugger events or application-specific messages during script debugging.
The most important properties of the Output are:
The Debugger property specifies ScriptDebugger instance, which output messages are displayed by this user control.
The SelectedMessage property represents the currently selected message.
Constructors
Properties
- Debugger
Gets or sets
IScriptDebuggerBase
which output messages will be displayed by this user control.
- SelectedMessage
Gets currently selected message.
Methods
- Clear()
Clears output list.
- CustomLog(string)
Adds custom message to the output
- DoEvents()
Processes all Windows messages currently in the message queue.
Events
- PropertyChanged
Occurs when a property value changes.