Skip to content

DiGi.UI.WPF.Windows

github-actions[bot] edited this page Jul 15, 2026 · 2 revisions

DiGi.UI.WPF.Windows Namespace

Classes

CancellableProgressBarWindow Class

Interaction logic for CancellableProgressBarWindow.xaml

public class CancellableProgressBarWindow : System.Windows.Window, DiGi.UI.WPF.Interfaces.IWindow, DiGi.UI.WPF.Interfaces.IWPFObject, DiGi.Core.Interfaces.IObject, System.Windows.Markup.IComponentConnector

Inheritance System.Object → System.Windows.Threading.DispatcherObject → System.Windows.DependencyObject → System.Windows.Media.Visual → System.Windows.UIElement → System.Windows.FrameworkElement → System.Windows.Controls.Control → System.Windows.Controls.ContentControl → System.Windows.Window → CancellableProgressBarWindow

Implements IWindow, IWPFObject, DiGi.Core.Interfaces.IObject, System.Windows.Markup.IComponentConnector

Constructors

CancellableProgressBarWindow() Constructor

Initializes a new instance of the CancellableProgressBarWindow class.

public CancellableProgressBarWindow();

Properties

CancellableProgressBarWindow.CancellationPending Property

Gets a value indicating whether a cancellation is pending.

public bool CancellationPending { get; }

Property Value

System.Boolean

CancellableProgressBarWindow.IsIndeterminate Property

Gets or sets a value indicating whether the progress bar is in an indeterminate state.

public bool IsIndeterminate { get; set; }

Property Value

System.Boolean

CancellableProgressBarWindow.Maximum Property

Gets or sets the maximum value for progress reporting.

public double Maximum { get; set; }

Property Value

System.Double

Methods

CancellableProgressBarWindow.InitializeComponent() Method

InitializeComponent

public void InitializeComponent();

Implements InitializeComponent()

CancellableProgressBarWindow.Update(double, string) Method

Updates the progress bar value and the associated status text.

public void Update(double value, string? text=null);

Parameters

value System.Double

The current progress value.

text System.String

The optional status text to display.

Events

CancellableProgressBarWindow.Cancelling Event

Occurs when the user requests to cancel the current operation.

public event CancellingEventHandler? Cancelling;

Event Type

CancellingEventHandler(object, CancellingEventArgs)

CheckBoxTreeViewWindow Class

Interaction logic for CheckBoxTreeViewWindow.xaml

public class CheckBoxTreeViewWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector

Inheritance System.Object → System.Windows.Threading.DispatcherObject → System.Windows.DependencyObject → System.Windows.Media.Visual → System.Windows.UIElement → System.Windows.FrameworkElement → System.Windows.Controls.Control → System.Windows.Controls.ContentControl → System.Windows.Window → CheckBoxTreeViewWindow

Implements System.Windows.Markup.IComponentConnector

Constructors

CheckBoxTreeViewWindow() Constructor

Initializes a new instance of the CheckBoxTreeViewWindow class.

public CheckBoxTreeViewWindow();

CheckBoxTreeViewWindow(string) Constructor

Initializes a new instance of the CheckBoxTreeViewWindow class with a specified title.

public CheckBoxTreeViewWindow(string? title);

Parameters

title System.String

The title to be displayed on the window.

Methods

CheckBoxTreeViewWindow.CollapseAll() Method

Collapses all nodes within the tree view control.

public void CollapseAll();

CheckBoxTreeViewWindow.ExpandAll() Method

Expands all nodes within the tree view control.

public void ExpandAll();

CheckBoxTreeViewWindow.GetItems<T>(bool) Method

Retrieves a list of items from the tree view control.

public System.Collections.Generic.List<T>? GetItems<T>(bool selected=true);

Type parameters

T

The type of items to retrieve.

Parameters

selected System.Boolean

If set to true, only selected items are returned; otherwise, all items are returned.

Returns

System.Collections.Generic.List<T>
A list of items of type T, or null if no items are found.

CheckBoxTreeViewWindow.InitializeComponent() Method

InitializeComponent

public void InitializeComponent();

Implements InitializeComponent()

CheckBoxTreeViewWindow.SetItems<T>(IEnumerable<T>) Method

Sets the items to be displayed in the tree view control.

public void SetItems<T>(System.Collections.Generic.IEnumerable<T> values);

Type parameters

T

The type of items to set.

Parameters

values System.Collections.Generic.IEnumerable<T>

An enumerable collection of items to populate the tree view.

Events

CheckBoxTreeViewWindow.ItemAdding Event

Occurs when an item is being added to the tree view control.

public event CheckBoxTreeViewItemAddingEventHandler? ItemAdding;

Event Type

CheckBoxTreeViewItemAddingEventHandler(object, CheckBoxTreeViewItemAddingEventArgs)

ListBoxWindow Class

Interaction logic for ListBoxWindow.xaml

public class ListBoxWindow : System.Windows.Window, DiGi.UI.WPF.Interfaces.IWindow, DiGi.UI.WPF.Interfaces.IWPFObject, DiGi.Core.Interfaces.IObject, System.Windows.Markup.IComponentConnector

Inheritance System.Object → System.Windows.Threading.DispatcherObject → System.Windows.DependencyObject → System.Windows.Media.Visual → System.Windows.UIElement → System.Windows.FrameworkElement → System.Windows.Controls.Control → System.Windows.Controls.ContentControl → System.Windows.Window → ListBoxWindow

Implements IWindow, IWPFObject, DiGi.Core.Interfaces.IObject, System.Windows.Markup.IComponentConnector

Constructors

ListBoxWindow() Constructor

Initializes a new instance of the ListBoxWindow class.

public ListBoxWindow();

ListBoxWindow(string) Constructor

Initializes a new instance of the ListBoxWindow class with a specified title.

public ListBoxWindow(string title);

Parameters

title System.String

The text to be displayed as the window title.

Properties

ListBoxWindow.SelectionMode Property

Gets or sets the selection mode of the internal list box control.

public System.Windows.Controls.SelectionMode SelectionMode { get; set; }

Property Value

System.Windows.Controls.SelectionMode

Methods

ListBoxWindow.GetItems<T>(bool) Method

Retrieves a list of items from the internal list box control.

public System.Collections.Generic.List<T>? GetItems<T>(bool selected=true);

Type parameters

T

The type of the items to retrieve.

Parameters

selected System.Boolean

If set to true, only selected items are retrieved; otherwise, all items are retrieved.

Returns

System.Collections.Generic.List<T>
A list containing the items of type T, or null if no items are available.

ListBoxWindow.InitializeComponent() Method

InitializeComponent

public void InitializeComponent();

Implements InitializeComponent()

ListBoxWindow.SetItems<T>(IEnumerable<T>) Method

Sets the collection of items for the internal list box control.

public void SetItems<T>(System.Collections.Generic.IEnumerable<T> values);

Type parameters

T

The type of the items to be set.

Parameters

values System.Collections.Generic.IEnumerable<T>

An enumerable collection of values to populate the list box.

Events

ListBoxWindow.ItemAdding Event

Occurs when an item is being added to the internal list box control.

public event ListBoxItemAddingEventHandler? ItemAdding;

Event Type

ListBoxItemAddingEventHandler(object, ListBoxItemAddingEventArgs)

ListBoxWindow.SelectionChanged Event

Occurs when the selection within the internal list box control changes.

public event SelectionChangedEventHandler? SelectionChanged;

Event Type

System.Windows.Controls.SelectionChangedEventHandler

ProgressBarWindow Class

Interaction logic for ProgressBarWindow.xaml

public class ProgressBarWindow : System.Windows.Window, DiGi.UI.WPF.Interfaces.IWindow, DiGi.UI.WPF.Interfaces.IWPFObject, DiGi.Core.Interfaces.IObject, System.Windows.Markup.IComponentConnector

Inheritance System.Object → System.Windows.Threading.DispatcherObject → System.Windows.DependencyObject → System.Windows.Media.Visual → System.Windows.UIElement → System.Windows.FrameworkElement → System.Windows.Controls.Control → System.Windows.Controls.ContentControl → System.Windows.Window → ProgressBarWindow

Implements IWindow, IWPFObject, DiGi.Core.Interfaces.IObject, System.Windows.Markup.IComponentConnector

Constructors

ProgressBarWindow() Constructor

Initializes a new instance of the ProgressBarWindow class.

public ProgressBarWindow();

Properties

ProgressBarWindow.IsIndeterminate Property

Gets or sets a value indicating whether the progress bar is in an indeterminate state.

public bool IsIndeterminate { get; set; }

Property Value

System.Boolean

ProgressBarWindow.Maximum Property

Gets or sets the maximum value for progress reporting.

public double Maximum { get; set; }

Property Value

System.Double

Methods

ProgressBarWindow.InitializeComponent() Method

InitializeComponent

public void InitializeComponent();

Implements InitializeComponent()

ProgressBarWindow.Update(double, string) Method

Updates the progress bar's current value and optionally updates the status text.

public void Update(double value, string? text=null);

Parameters

value System.Double

The current progress value to be displayed.

text System.String

The optional text to display as a status message.

TextBoxWindow Class

Interaction logic for TextBoxWindow.xaml

public class TextBoxWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector

Inheritance System.Object → System.Windows.Threading.DispatcherObject → System.Windows.DependencyObject → System.Windows.Media.Visual → System.Windows.UIElement → System.Windows.FrameworkElement → System.Windows.Controls.Control → System.Windows.Controls.ContentControl → System.Windows.Window → TextBoxWindow

Implements System.Windows.Markup.IComponentConnector

Constructors

TextBoxWindow() Constructor

Initializes a new instance of the TextBoxWindow class.

public TextBoxWindow();

TextBoxWindow(string, string) Constructor

Initializes a new instance of the TextBoxWindow class with specified title and initial text.

public TextBoxWindow(string? title, string? text);

Parameters

title System.String

The window title.

text System.String

The initial text for the text box.

TextBoxWindow(string, string, object) Constructor

Initializes a new instance of the TextBoxWindow class with specified title, initial text, and an associated value.

public TextBoxWindow(string? title, string? text, object? value);

Parameters

title System.String

The window title.

text System.String

The initial text for the text box.

value System.Object

The object value to be converted to a string representation.

Properties

TextBoxWindow.Text Property

Gets or sets the text content of the main text box control.

public string? Text { get; set; }

Property Value

System.String

TextBoxWindow.Validation Property

Gets or sets the validation function used to verify the input text.

public System.Func<string,bool>? Validation { get; set; }

Property Value

System.Func<System.String,System.Boolean>

TextBoxWindow.Value Property

Gets or sets the value associated with the text box control.

public string? Value { get; set; }

Property Value

System.String

Methods

TextBoxWindow.GetValue<T>() Method

Retrieves the current value from the text box as the specified type.

public T? GetValue<T>();

Type parameters

T

The target type to retrieve.

Returns

T
The retrieved value of type T, or the default value if retrieval fails.

TextBoxWindow.GetValue<T>(T) Method

Retrieves the current value from the text box as the specified type, returning a default value if retrieval fails.

public T? GetValue<T>(T? defaultValue);

Type parameters

T

The target type to retrieve.

Parameters

defaultValue T

The value to return if the actual value cannot be retrieved or converted.

Returns

T
The retrieved value of type T, or the provided defaultValue.

TextBoxWindow.InitializeComponent() Method

InitializeComponent

public void InitializeComponent();

Implements InitializeComponent()

TextBoxWindow.TryGetValue<T>(T) Method

Attempts to retrieve the current value from the text box as the specified type.

public bool TryGetValue<T>(out T? value);

Type parameters

T

The target type to retrieve.

Parameters

value T

When this method returns, contains the retrieved value if successful; otherwise, the default value of T.

Returns

System.Boolean
True if the value was successfully retrieved and converted; otherwise, false.

TreeViewWindow Class

Interaction logic for TreeViewWindow.xaml

public class TreeViewWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector

Inheritance System.Object → System.Windows.Threading.DispatcherObject → System.Windows.DependencyObject → System.Windows.Media.Visual → System.Windows.UIElement → System.Windows.FrameworkElement → System.Windows.Controls.Control → System.Windows.Controls.ContentControl → System.Windows.Window → TreeViewWindow

Implements System.Windows.Markup.IComponentConnector

Constructors

TreeViewWindow() Constructor

Initializes a new instance of the TreeViewWindow class.

public TreeViewWindow();

TreeViewWindow(string) Constructor

Initializes a new instance of the TreeViewWindow class with a specified title.

public TreeViewWindow(string? title);

Parameters

title System.String

The window title to be displayed.

Methods

TreeViewWindow.CollapseAll() Method

Collapses all nodes in the main tree view control.

public void CollapseAll();

TreeViewWindow.ExpandAll() Method

Expands all nodes in the main tree view control.

public void ExpandAll();

TreeViewWindow.GetItems<T>(bool) Method

Retrieves a list of items of type T from the tree view.

public System.Collections.Generic.List<T>? GetItems<T>(bool selected=true);

Type parameters

T

The type of items to retrieve.

Parameters

selected System.Boolean

If set to true, only selected items are returned; otherwise, all items are returned.

Returns

System.Collections.Generic.List<T>
A list containing the retrieved items of type T, or null.

TreeViewWindow.InitializeComponent() Method

InitializeComponent

public void InitializeComponent();

Implements InitializeComponent()

TreeViewWindow.SetItems<T>(IEnumerable<T>) Method

Sets the items of the tree view to the specified collection.

public void SetItems<T>(System.Collections.Generic.IEnumerable<T> values);

Type parameters

T

The type of items to set.

Parameters

values System.Collections.Generic.IEnumerable<T>

The enumerable collection of values to populate the tree view.

Events

TreeViewWindow.ItemAdding Event

Occurs when an item is being added to the tree view control.

public event TreeViewItemAddingEventHandler? ItemAdding;

Event Type

TreeViewItemAddingEventHandler(object, TreeViewItemAddingEventArgs)

Clone this wiki locally