Repository navigation
DiGi.UI.WPF.Windows
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.IComponentConnectorInheritance 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
Initializes a new instance of the CancellableProgressBarWindow class.
public CancellableProgressBarWindow();Gets a value indicating whether a cancellation is pending.
public bool CancellationPending { get; }Gets or sets a value indicating whether the progress bar is in an indeterminate state.
public bool IsIndeterminate { get; set; }Gets or sets the maximum value for progress reporting.
public double Maximum { get; set; }InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Updates the progress bar value and the associated status text.
public void Update(double value, string? text=null);value System.Double
The current progress value.
text System.String
The optional status text to display.
Occurs when the user requests to cancel the current operation.
public event CancellingEventHandler? Cancelling;CancellingEventHandler(object, CancellingEventArgs)
Interaction logic for CheckBoxTreeViewWindow.xaml
public class CheckBoxTreeViewWindow : System.Windows.Window, System.Windows.Markup.IComponentConnectorInheritance 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
Initializes a new instance of the CheckBoxTreeViewWindow class.
public CheckBoxTreeViewWindow();Initializes a new instance of the CheckBoxTreeViewWindow class with a specified title.
public CheckBoxTreeViewWindow(string? title);title System.String
The title to be displayed on the window.
Collapses all nodes within the tree view control.
public void CollapseAll();Expands all nodes within the tree view control.
public void ExpandAll();Retrieves a list of items from the tree view control.
public System.Collections.Generic.List<T>? GetItems<T>(bool selected=true);T
The type of items to retrieve.
selected System.Boolean
If set to true, only selected items are returned; otherwise, all items are returned.
System.Collections.Generic.List<T>
A list of items of type T, or null if no items are found.
InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Sets the items to be displayed in the tree view control.
public void SetItems<T>(System.Collections.Generic.IEnumerable<T> values);T
The type of items to set.
values System.Collections.Generic.IEnumerable<T>
An enumerable collection of items to populate the tree view.
Occurs when an item is being added to the tree view control.
public event CheckBoxTreeViewItemAddingEventHandler? ItemAdding;CheckBoxTreeViewItemAddingEventHandler(object, CheckBoxTreeViewItemAddingEventArgs)
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.IComponentConnectorInheritance 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
Initializes a new instance of the ListBoxWindow class.
public ListBoxWindow();Initializes a new instance of the ListBoxWindow class with a specified title.
public ListBoxWindow(string title);title System.String
The text to be displayed as the window title.
Gets or sets the selection mode of the internal list box control.
public System.Windows.Controls.SelectionMode SelectionMode { get; set; }System.Windows.Controls.SelectionMode
Retrieves a list of items from the internal list box control.
public System.Collections.Generic.List<T>? GetItems<T>(bool selected=true);T
The type of the items to retrieve.
selected System.Boolean
If set to true, only selected items are retrieved; otherwise, all items are retrieved.
System.Collections.Generic.List<T>
A list containing the items of type T, or null if no items are available.
InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Sets the collection of items for the internal list box control.
public void SetItems<T>(System.Collections.Generic.IEnumerable<T> values);T
The type of the items to be set.
values System.Collections.Generic.IEnumerable<T>
An enumerable collection of values to populate the list box.
Occurs when an item is being added to the internal list box control.
public event ListBoxItemAddingEventHandler? ItemAdding;ListBoxItemAddingEventHandler(object, ListBoxItemAddingEventArgs)
Occurs when the selection within the internal list box control changes.
public event SelectionChangedEventHandler? SelectionChanged;System.Windows.Controls.SelectionChangedEventHandler
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.IComponentConnectorInheritance 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
Initializes a new instance of the ProgressBarWindow class.
public ProgressBarWindow();Gets or sets a value indicating whether the progress bar is in an indeterminate state.
public bool IsIndeterminate { get; set; }Gets or sets the maximum value for progress reporting.
public double Maximum { get; set; }InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Updates the progress bar's current value and optionally updates the status text.
public void Update(double value, string? text=null);value System.Double
The current progress value to be displayed.
text System.String
The optional text to display as a status message.
Interaction logic for TextBoxWindow.xaml
public class TextBoxWindow : System.Windows.Window, System.Windows.Markup.IComponentConnectorInheritance 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
Initializes a new instance of the TextBoxWindow class.
public TextBoxWindow();Initializes a new instance of the TextBoxWindow class with specified title and initial text.
public TextBoxWindow(string? title, string? text);title System.String
The window title.
text System.String
The initial text for the text box.
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);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.
Gets or sets the text content of the main text box control.
public string? Text { get; set; }Gets or sets the validation function used to verify the input text.
public System.Func<string,bool>? Validation { get; set; }System.Func<System.String,System.Boolean>
Gets or sets the value associated with the text box control.
public string? Value { get; set; }Retrieves the current value from the text box as the specified type.
public T? GetValue<T>();T
The target type to retrieve.
T
The retrieved value of type T, or the default value if retrieval fails.
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);T
The target type to retrieve.
defaultValue T
The value to return if the actual value cannot be retrieved or converted.
T
The retrieved value of type T, or the provided defaultValue.
InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Attempts to retrieve the current value from the text box as the specified type.
public bool TryGetValue<T>(out T? value);T
The target type to retrieve.
value T
When this method returns, contains the retrieved value if successful; otherwise, the default value of T.
System.Boolean
True if the value was successfully retrieved and converted; otherwise, false.
Interaction logic for TreeViewWindow.xaml
public class TreeViewWindow : System.Windows.Window, System.Windows.Markup.IComponentConnectorInheritance 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
Initializes a new instance of the TreeViewWindow class.
public TreeViewWindow();Initializes a new instance of the TreeViewWindow class with a specified title.
public TreeViewWindow(string? title);title System.String
The window title to be displayed.
Collapses all nodes in the main tree view control.
public void CollapseAll();Expands all nodes in the main tree view control.
public void ExpandAll();Retrieves a list of items of type T from the tree view.
public System.Collections.Generic.List<T>? GetItems<T>(bool selected=true);T
The type of items to retrieve.
selected System.Boolean
If set to true, only selected items are returned; otherwise, all items are returned.
System.Collections.Generic.List<T>
A list containing the retrieved items of type T, or null.
InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Sets the items of the tree view to the specified collection.
public void SetItems<T>(System.Collections.Generic.IEnumerable<T> values);T
The type of items to set.
values System.Collections.Generic.IEnumerable<T>
The enumerable collection of values to populate the tree view.
Occurs when an item is being added to the tree view control.
public event TreeViewItemAddingEventHandler? ItemAdding;TreeViewItemAddingEventHandler(object, TreeViewItemAddingEventArgs)