FlagEnumEditor
Represents a selection control for editing flag Enumeration values with a drop-down list that can be shown or hidden by clicking the arrow on the control.
Definition
Namespace:Telerik.Windows.Controls.Data.PropertyGrid
Assembly:Telerik.Windows.Controls.Data.dll
Syntax:
[TelerikToolboxCategory("Input")]
public class FlagEnumEditor : Control
Inheritance: objectFlagEnumEditor
Constructors
Initializes a new instance of the FlagEnumEditor class.
public FlagEnumEditor()
Fields
DisplayTextProperty
DependencyProperty
Identifies the DisplayText dependency property.
public static readonly DependencyProperty DisplayTextProperty
EnumItemsSourceProperty
DependencyProperty
Identifies the EnumerationItemsSource dependency property.
public static readonly DependencyProperty EnumItemsSourceProperty
EnumTypeProperty
DependencyProperty
Identifies the EnumerationType dependency property.
public static readonly DependencyProperty EnumTypeProperty
ValueProperty
DependencyProperty
Identifies the Value dependency property.
public static readonly DependencyProperty ValueProperty
Properties
Gets or sets the text displayed when the dropdown is closed.
public string DisplayText { get; }
Gets or sets the EnumerationItemsSource.
public ObservableItemCollection<FlagEnumValueViewModel> EnumItemsSource { get; set; }
The EnumerationType.
Gets or sets the EnumerationType.
public Type EnumType { get; set; }
The EnumerationType.
Methods
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
true to release both managed and unmanaged resources;
false to release only unmanaged resources.
When overridden in a derived class, is invoked whenever application code or internal processes (such as a rebuilding layout pass) call . In simplest terms, this means the method is called just before a UI element displays in an application. For more information, see Remarks.
public override void OnApplyTemplate()
Raises the event. This method is invoked whenever is set to true internally.
protected override void OnInitialized(EventArgs e)
The RoutedEventArgs that contains the event data.
Resets the theme.
public void ResetTheme()