New to Telerik UI for WPFStart a free 30-day trial

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:

C#
[TelerikToolboxCategory("Input")]
public class FlagEnumEditor : Control

Inheritance: objectFlagEnumEditor

Constructors

Initializes a new instance of the FlagEnumEditor class.

C#
public FlagEnumEditor()

Fields

DisplayTextProperty

DependencyProperty

Identifies the DisplayText dependency property.

C#
public static readonly DependencyProperty DisplayTextProperty

EnumItemsSourceProperty

DependencyProperty

Identifies the EnumerationItemsSource dependency property.

C#
public static readonly DependencyProperty EnumItemsSourceProperty

EnumTypeProperty

DependencyProperty

Identifies the EnumerationType dependency property.

C#
public static readonly DependencyProperty EnumTypeProperty

ValueProperty

DependencyProperty

Identifies the Value dependency property.

C#
public static readonly DependencyProperty ValueProperty

Properties

Gets or sets the text displayed when the dropdown is closed.

C#
public string DisplayText { get; }

Gets or sets the EnumerationItemsSource.

C#
public ObservableItemCollection<FlagEnumValueViewModel> EnumItemsSource { get; set; }
Property Value:

The EnumerationType.

Gets or sets the EnumerationType.

C#
public Type EnumType { get; set; }
Property Value:

The EnumerationType.

Gets or sets the Value.

C#
public object Value { get; set; }
Property Value:

The Value.

Methods

Releases unmanaged and - optionally - managed resources.

C#
protected virtual void Dispose(bool disposing)
Parameters:disposingbool

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.

C#
public override void OnApplyTemplate()

Raises the event. This method is invoked whenever is set to true internally.

C#
protected override void OnInitialized(EventArgs e)
Parameters:eEventArgs

The RoutedEventArgs that contains the event data.

Resets the theme.

C#
public void ResetTheme()