Class OptionSelector<TEnum>
Provides a user interface for displaying and selecting a single item from a list of options in a type-safe way. Each option is represented by a checkbox, but only one can be selected at a time. OptionSelector provides a non-type-safe version.
public sealed class OptionSelector<TEnum> : OptionSelector, IDisposable, ISupportInitializeNotification, ISupportInitialize, IOrientation, IDesignable where TEnum : struct, Enum
Type Parameters
TEnum
- Inheritance
-
OptionSelector<TEnum>
- Implements
- Inherited Members
- Extension Methods
Constructors
- OptionSelector()
Initializes a new instance of the OptionSelector<TEnum> class.
Properties
- Value
Gets or sets the value of the selected option.
- Values
Prevents calling the base Values property setter with arbitrary values.
Methods
- OnValueChanged(int?, int?)
Called when Value has changed. Raises the generic ValueChanged event.
Events
- ValueChanged
Raised when Value has changed. Provides the new value as
TEnum?.