Show / Hide Table of Contents

Class EnumUI<TEnum>

Adds enum members to a popupMenu menu or WPF control, and gets the selected value(s).

public class EnumUI<TEnum> where TEnum : unmanaged, Enum
Type Parameters
Name Description
TEnum

Namespace: Au.More
Assembly: Au.dll
Inheritance
object
EnumUI<TEnum>

Constructors

Name Description
EnumUI(popupMenu, TEnum, (TEnum value, string text)[], bool)

Adds enum members to a popupMenu menu as checkbox-items (if it's a [Flags] enum) or radio-items.

EnumUI(bool)
EnumUI(Func<ItemData, bool>, bool)
EnumUI((TEnum value, string text)[], bool)
EnumUI(Panel, TEnum, (TEnum value, string text)[], bool)

Adds members of a [Flags] enum as checkboxes to a WPF panel.

EnumUI(Selector, TEnum, (TEnum value, string text)[], bool)

Adds members of a non-[Flags] enum to a WPF System.Windows.Controls.ComboBox or other System.Windows.Controls.Primitives.Selector-based control.

Properties

Name Description
Result

Gets enum value from checked/selected menu items or WPF elements.

Methods

Name Description
AddTo(popupMenu, TEnum)

Adds enum members to a popupMenu menu as checkbox-items (if it's a [Flags] enum) or radio-items.

AddTo(Panel, TEnum)

Adds members of a [Flags] enum as checkboxes to a WPF panel.

AddTo(Selector, TEnum)

Adds members of a non-[Flags] enum to a WPF System.Windows.Controls.ComboBox or other System.Windows.Controls.Primitives.Selector-based control.