Class FlagSelector
Provides a user interface for displaying and selecting flags. Flags can be set from a dictionary or directly from an enum type.
public class FlagSelector : View, IDisposable, ISupportInitializeNotification, ISupportInitialize, IDesignable, IOrientation
- Inheritance
-
FlagSelector
- Implements
- Inherited Members
Constructors
- FlagSelector()
Initializes a new instance of the FlagSelector class.
Properties
- Flags
Gets the flags.
- Orientation
Gets or sets the Orientation for this RadioGroup. The default is Vertical.
- Styles
Gets or sets the styles for the flag selector.
- Value
Gets or sets the value of the selected flags.
Methods
- EnableForDesign()
Causes the View to enable design-time mode. This typically means that the view will load demo data and be configured to allow for design-time manipulation.
- OnOrientationChanged(Orientation)
Called when Orientation has changed.
- OnSubViewAdded(View)
Called when a SubView has been added to this View.
- OnValueChanged()
Called when Value has changed.
- SetFlags(IReadOnlyDictionary<uint, string>)
Set the flags and flag names.
- SetFlags<TEnum>()
Set the flags and flag names from an enum type.
- SetFlags<TEnum>(Func<TEnum, string>)
Set the flags and flag names from an enum type with custom display names.
Events
- OrientationChanged
Raised when Orientation has changed.
- OrientationChanging
Raised when Orientation is changing. Can be cancelled.
- ValueChanged
Raised when Value has changed.