Repository navigation
DiGi.UI.WPF.Controls
Interaction logic for CheckBoxTreeViewControl.xaml
public class CheckBoxTreeViewControl : System.Windows.Controls.UserControl, 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.Controls.UserControl → CheckBoxTreeViewControl
Implements System.Windows.Markup.IComponentConnector
Initializes a new instance of the CheckBoxTreeViewControl class.
public CheckBoxTreeViewControl();Collapses all nodes within the tree view.
public void CollapseAll();Expands all nodes within the tree view.
public void ExpandaAll();Retrieves a list of items of type T from the tree view, optionally filtered by their selection state.
public System.Collections.Generic.List<T>? GetItems<T>(bool selected=true);T
The type of items to retrieve.
selected System.Boolean
A boolean indicating whether only selected items should be returned. Defaults to true.
System.Collections.Generic.List<T>
A list of items of type T, or null if no matching items are found.
InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Populates the tree view with a collection of items.
public void SetItems<T>(System.Collections.Generic.IEnumerable<T> values);T
The type of values to be added to the tree view.
values System.Collections.Generic.IEnumerable<T>
An enumerable collection of values to populate the control.
Occurs when an item is being added to the tree view, allowing for customization of the item's path and name.
public event CheckBoxTreeViewItemAddingEventHandler? ItemAdding;CheckBoxTreeViewItemAddingEventHandler(object, CheckBoxTreeViewItemAddingEventArgs)
Interaction logic for ListBoxControl.xaml
public class ListBoxControl : System.Windows.Controls.UserControl, DiGi.UI.WPF.Interfaces.IControl, 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.Controls.UserControl → ListBoxControl
Implements IControl, IWPFObject, DiGi.Core.Interfaces.IObject, System.Windows.Markup.IComponentConnector
Initializes a new instance of the ListBoxControl class.
public ListBoxControl();Gets or sets the SelectionMode of the list box.
public System.Windows.Controls.SelectionMode SelectionMode { get; set; }System.Windows.Controls.SelectionMode
Clears all items from the list box.
public void ClearItems();Retrieves a list of items of type T from the list box.
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 if no items match the criteria.
InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Sets the items in the list box using the provided collection of values.
public void SetItems<T>(System.Collections.Generic.IEnumerable<T> values);T
The type of items to be added to the list box.
values System.Collections.Generic.IEnumerable<T>
An enumerable collection of values to populate the list box with.
Occurs when an item is about to be added to the list box.
public event ListBoxItemAddingEventHandler? ItemAdding;ListBoxItemAddingEventHandler(object, ListBoxItemAddingEventArgs)
Occurs when the selection within the list box changes.
public event SelectionChangedEventHandler? SelectionChanged;System.Windows.Controls.SelectionChangedEventHandler
Interaction logic for ProgressBarControl.xaml
public class ProgressBarControl : System.Windows.Controls.UserControl, DiGi.UI.WPF.Interfaces.IControl, 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.Controls.UserControl → ProgressBarControl
Implements IControl, IWPFObject, DiGi.Core.Interfaces.IObject, System.Windows.Markup.IComponentConnector
Initializes a new instance of the ProgressBarControl class.
public ProgressBarControl();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; }Gets or sets the current progress value.
public double Value { get; set; }InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Updates the progress bar with a specific value and optional descriptive text.
public void Update(double value, string? text=null);value System.Double
The current progress value to be displayed.
text System.String
Optional text to display as a label for the progress bar.
Interaction logic for TextBoxControl.xaml
public class TextBoxControl : System.Windows.Controls.UserControl, 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.Controls.UserControl → TextBoxControl
Implements System.Windows.Markup.IComponentConnector
Initializes a new instance of the TextBoxControl class.
public TextBoxControl();Gets or sets the text content displayed in the control's label.
public string? Text { get; set; }Gets or sets the validation function used to determine if a string input is valid.
public System.Func<string,bool>? Validation { get; set; }System.Func<System.String,System.Boolean>
Gets or sets the text value of the internal text box.
public string? Value { get; set; }Retrieves the current value of the control converted to the specified type.
public T? GetValue<T>();T
The target type for conversion.
T
The converted value if successful; otherwise, the default value of type T.
Retrieves the current value of the control converted to the specified type, or returns a provided default value if conversion fails.
public T? GetValue<T>(T? defaultValue);T
The target type for conversion.
defaultValue T
The value to return if the conversion cannot be performed.
T
The converted value if successful; otherwise, the specified defaultValue.
InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Attempts to convert the current value of the control to the specified type.
public bool TryGetValue<T>(out T? value);T
The target type for conversion.
value T
When this method returns, contains the converted value if successful; otherwise, the default value of type T.
System.Boolean
true if the value was successfully converted; otherwise, false.
Interaction logic for TreeViewControl.xaml
public class TreeViewControl : System.Windows.Controls.UserControl, 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.Controls.UserControl → TreeViewControl
Implements System.Windows.Markup.IComponentConnector
Initializes a new instance of the TreeViewControl class.
public TreeViewControl();Clears all items from the main TreeView control.
public void ClearItems();Collapses all expandable nodes within the tree view.
public void CollapseAll();Expands all expandable nodes within the tree view.
public void ExpandaAll();Retrieves a list of items of the specified type 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 retrieves items that are currently selected; otherwise, retrieves all items of type T.
System.Collections.Generic.List<T>
A list of items of type T, or null if no matching items are found.
InitializeComponent
public void InitializeComponent();Implements InitializeComponent()
Populates the tree view with a collection of values, organizing them by path and allowing custom item creation via the ItemAdding event.
public void SetItems<T>(System.Collections.Generic.IEnumerable<T> values);T
The type of values to be added to the tree view.
values System.Collections.Generic.IEnumerable<T>
The collection of values to set in the tree view.
Occurs when an item is being added to the tree view, allowing for modification of the item's path or name.
public event TreeViewItemAddingEventHandler? ItemAdding;TreeViewItemAddingEventHandler(object, TreeViewItemAddingEventArgs)
Occurs when the selected item in the tree view changes.
public event RoutedPropertyChangedEventHandler<object>? SelectedItemChanged;System.Windows.RoutedPropertyChangedEventHandler<System.Object>
VisualBackgroundTasksControl
public class VisualBackgroundTasksControl : System.Windows.Controls.UserControl, 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.Controls.UserControl → VisualBackgroundTasksControl
Implements System.Windows.Markup.IComponentConnector
Initializes a new instance of the VisualBackgroundTasksControl class.
public VisualBackgroundTasksControl();Identifies the VisualBackgroundTasks dependency property.
public static readonly DependencyProperty VisualBackgroundTasksProperty;System.Windows.DependencyProperty
Gets or sets the collection of visual background tasks to be displayed and managed by the control.
public System.Collections.ObjectModel.ObservableCollection<DiGi.UI.WPF.Interfaces.IVisualBackgroundTask>? VisualBackgroundTasks { get; set; }System.Collections.ObjectModel.ObservableCollection<IVisualBackgroundTask>
InitializeComponent
public void InitializeComponent();Implements InitializeComponent()