WPFCustomControls::Customization::EnumSelector Class Reference


Detailed Description

A control which represents an Enum selection, but whose values can be localized and rendered in human-readable form.

List of all members.

Public Member Functions

  EnumSelector ()

Static Public Member Functions

static void  OnSelectedEnumrChanged (object sender, DependencyPropertyChangedEventArgs args)
static void  OnEnumValueListChanged (object sender, DependencyPropertyChangedEventArgs args)
static void  OnItemsChanged (object sender, DependencyPropertyChangedEventArgs args)

Static Public Attributes

static DependencyProperty  SelectedEnumProperty
static DependencyProperty  EnumValueListProperty

Protected Member Functions

virtual void  OnItemsChanged (DependencyPropertyChangedEventArgs args)
virtual void  OnSelectedEnumChanged (DependencyPropertyChangedEventArgs args)
virtual void  OnEnumValueListChanged (DependencyPropertyChangedEventArgs args)

Properties

Enum  SelectedEnum [get, set]
  The output value from this control.
String  EnumValueList [get, set]
  An optional list of human-readable strings for the control to use.

Events

DependencyPropertyChangedEventHandler  ItemsChanged
DependencyPropertyChangedEventHandler  SelectedEnumChanged
DependencyPropertyChangedEventHandler  EnumValueListChanged

Constructor & Destructor Documentation

WPFCustomControls::Customization::EnumSelector::EnumSelector ( ) [inline]

Member Function Documentation

static void WPFCustomControls::Customization::EnumSelector::OnSelectedEnumrChanged ( object  sender,
DependencyPropertyChangedEventArgs  args 
) [inline, static]
static void WPFCustomControls::Customization::EnumSelector::OnEnumValueListChanged ( object  sender,
DependencyPropertyChangedEventArgs  args 
) [inline, static]
static void WPFCustomControls::Customization::EnumSelector::OnItemsChanged ( object  sender,
DependencyPropertyChangedEventArgs  args 
) [inline, static]
virtual void WPFCustomControls::Customization::EnumSelector::OnItemsChanged ( DependencyPropertyChangedEventArgs  args ) [inline, protected, virtual]
virtual void WPFCustomControls::Customization::EnumSelector::OnSelectedEnumChanged ( DependencyPropertyChangedEventArgs  args ) [inline, protected, virtual]
virtual void WPFCustomControls::Customization::EnumSelector::OnEnumValueListChanged ( DependencyPropertyChangedEventArgs  args ) [inline, protected, virtual]

Member Data Documentation

Initial value:
 DependencyProperty.Register(
            "SelectedEnum",
            typeof(Enum),
            typeof(EnumSelector),
            new FrameworkPropertyMetadata(
                null,
                new PropertyChangedCallback(OnSelectedEnumrChanged)
                ))
Initial value:
 DependencyProperty.Register(
            "EnumValueList",
            typeof(String),
            typeof(EnumSelector),
            new FrameworkPropertyMetadata(
                null,
                new PropertyChangedCallback(OnEnumValueListChanged)
            ))

Property Documentation

Enum WPFCustomControls::Customization::EnumSelector::SelectedEnum [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::EnumSelector::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.


Event Documentation

DependencyPropertyChangedEventHandler WPFCustomControls::Customization::EnumSelector::ItemsChanged
DependencyPropertyChangedEventHandler WPFCustomControls::Customization::EnumSelector::SelectedEnumChanged
DependencyPropertyChangedEventHandler WPFCustomControls::Customization::EnumSelector::EnumValueListChanged

WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector
WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector WPFCustomControls::Customization::EnumSelector