A control which represents a Flag-based Enum selection, but whose values can be localized and rendered in human-readable form.
Classes |
|
class | EnumSelectionEntry |
The entry viewmodel object. |
|
Public Member Functions |
|
FlaggedEnumSelector () | |
Static Public Attributes |
|
static readonly DependencyProperty | ValueProperty |
static readonly DependencyProperty | EnumValueListProperty |
static readonly DependencyProperty | ItemsProperty |
static readonly DependencyProperty | ComboTitleProperty |
Protected Member Functions |
|
virtual void | OnItemsChanged (DependencyPropertyChangedEventArgs args) |
virtual void | OnValueChanged (DependencyPropertyChangedEventArgs args) |
virtual void | OnEnumValueListChanged (DependencyPropertyChangedEventArgs args) |
Properties |
|
Enum |
Value [get, set] |
The output value from this control. |
|
String |
ComboTitle [get, set] |
String |
EnumValueList [get, set] |
An optional list of human-readable strings
for the control to use. |
|
Events |
|
DependencyPropertyChangedEventHandler | ItemsChanged |
DependencyPropertyChangedEventHandler | SelectedEnumChanged |
DependencyPropertyChangedEventHandler | EnumValueListChanged |
WPFCustomControls::Customization::FlaggedEnumSelector::FlaggedEnumSelector | ( | ) | [inline] |
virtual void WPFCustomControls::Customization::FlaggedEnumSelector::OnItemsChanged | ( | DependencyPropertyChangedEventArgs | args | ) | [inline, protected, virtual] |
virtual void WPFCustomControls::Customization::FlaggedEnumSelector::OnValueChanged | ( | DependencyPropertyChangedEventArgs | args | ) | [inline, protected, virtual] |
virtual void WPFCustomControls::Customization::FlaggedEnumSelector::OnEnumValueListChanged | ( | DependencyPropertyChangedEventArgs | args | ) | [inline, protected, virtual] |
readonly DependencyProperty
WPFCustomControls::Customization::FlaggedEnumSelector::ValueProperty
[static] |
DependencyProperty.Register( "Value", typeof(Enum), typeof(FlaggedEnumSelector), new FrameworkPropertyMetadata( null, new PropertyChangedCallback(OnValueChanged) ))
readonly DependencyProperty
WPFCustomControls::Customization::FlaggedEnumSelector::EnumValueListProperty
[static] |
DependencyProperty.Register( "EnumValueList", typeof(String), typeof(FlaggedEnumSelector), new FrameworkPropertyMetadata( null, new PropertyChangedCallback(OnEnumValueListChanged) ))
readonly DependencyProperty
WPFCustomControls::Customization::FlaggedEnumSelector::ItemsProperty
[static] |
DependencyProperty.Register( "Items", typeof(ReadOnlyCollection<EnumSelectionEntry>), typeof(FlaggedEnumSelector) )
readonly DependencyProperty
WPFCustomControls::Customization::FlaggedEnumSelector::ComboTitleProperty
[static] |
DependencyProperty.Register( "ComboTitle", typeof(String), typeof(FlaggedEnumSelector), new FrameworkPropertyMetadata(String.Empty) )
Enum
WPFCustomControls::Customization::FlaggedEnumSelector::Value
[get, set] |
The output value from this control.
Clients can bind against this value to extract an Enum value selection from this control.
String
WPFCustomControls::Customization::FlaggedEnumSelector::ComboTitle
[get, set] |
String
WPFCustomControls::Customization::FlaggedEnumSelector::EnumValueList
[get, set] |
An optional list of human-readable strings for the control to use.
The control is expecting a comma-seperated list of strings.
DependencyPropertyChangedEventHandler WPFCustomControls::Customization::FlaggedEnumSelector::ItemsChanged |
DependencyPropertyChangedEventHandler WPFCustomControls::Customization::FlaggedEnumSelector::SelectedEnumChanged |
DependencyPropertyChangedEventHandler WPFCustomControls::Customization::FlaggedEnumSelector::EnumValueListChanged |