EnumDataSource
Provides a collection of view models suitable for combo-box binding.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Syntax:
public class EnumDataSource : IEnumerable, INotifyCollectionChanged
Inheritance: objectEnumDataSource
Implements:
Constructors
Initializes a new instance of the EnumDataSource class.
public EnumDataSource()
Properties
Methods
Returns a collection of EnumMemberViewModel's based on the supplied enumeration type. You can use this method's return value as the ItemsSource of a combo-box.
public static IEnumerable<EnumMemberViewModel> FromType(Type enumType)
The enumeration type.
Returns:IEnumerable<EnumMemberViewModel>
A collection of EnumMemberViewModel's based on the supplied enumeration type.
Returns a collection of EnumMemberViewModel's based on the supplied enumeration type. You can use this method's return value as the ItemsSource of a combo-box.
public static IEnumerable<EnumMemberViewModel> FromType<TEnum>() where TEnum : struct
IEnumerable<EnumMemberViewModel>
A collection of EnumMemberViewModel's based on the supplied enumeration type.
Returns an enumerator that iterates through a collection.
public IEnumerator GetEnumerator()
An IEnumerator object that can be used to iterate through the collection.
Implements:
Events
Occurs when the collection changes.
public event NotifyCollectionChangedEventHandler CollectionChanged
Implements: