C# Class WPFLocalizeExtension.Engine.EnumComboBox

An extended combobox that is enumerating Enum values.

Use the BrowsableAttribute to hide specific entries.

Inheritance: System.Windows.Controls.ComboBox
Mostra file Open project: SeriousM/WPFLocalizationExtension

Public Properties

Property Type Description
PrefixProperty System.Windows.DependencyProperty
PrependTypeProperty System.Windows.DependencyProperty
SeparatorProperty System.Windows.DependencyProperty
TypeProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
SetType void
TypeChanged void

Public Methods

Method Description
EnumComboBox ( ) : System

Creates a new instance.

Protected Methods

Method Description
OnItemTemplateChanged ( System.Windows.DataTemplate oldItemTemplate, System.Windows.DataTemplate newItemTemplate ) : void
ShouldSerializeProperty ( DependencyProperty dp ) : bool

Private Methods

Method Description
SetType ( Type type ) : void
TypeChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Method Details

EnumComboBox() public method

Creates a new instance.
public EnumComboBox ( ) : System
return System

OnItemTemplateChanged() protected method

protected OnItemTemplateChanged ( System.Windows.DataTemplate oldItemTemplate, System.Windows.DataTemplate newItemTemplate ) : void
oldItemTemplate System.Windows.DataTemplate
newItemTemplate System.Windows.DataTemplate
return void

ShouldSerializeProperty() protected method

protected ShouldSerializeProperty ( DependencyProperty dp ) : bool
dp System.Windows.DependencyProperty
return bool

Property Details

PrefixProperty public_oe static_oe property

The Prefix.
public static DependencyProperty,System.Windows PrefixProperty
return System.Windows.DependencyProperty

PrependTypeProperty public_oe static_oe property

This flag determines, if the type should be added using the given separator.
public static DependencyProperty,System.Windows PrependTypeProperty
return System.Windows.DependencyProperty

SeparatorProperty public_oe static_oe property

The Separator.
public static DependencyProperty,System.Windows SeparatorProperty
return System.Windows.DependencyProperty

TypeProperty public_oe static_oe property

The Type.
public static DependencyProperty,System.Windows TypeProperty
return System.Windows.DependencyProperty