Class EnumExtension
XAML extension to return the values of an enumeration.
Inherited Members
Namespace: BionicCode.Utilities.Net
Assembly: BionicCode.Utilities.Net.Wpf.dll
Syntax
public class EnumExtension : MarkupExtension
Examples
Provide the enum type via constructor or by setting the EnumType property:
Constructors
| Improve this Doc View SourceEnumExtension()
Default constructor.
Declaration
public EnumExtension()
EnumExtension(Type)
Constructor to initialize the EnumType property.
Declaration
public EnumExtension(Type enumType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | enumType |
Properties
| Improve this Doc View SourceEnumType
The enum to enumerate.
Declaration
public Type EnumType { get; set; }
Property Value
| Type | Description |
|---|---|
| Type | The type of the enum to enumerate. |
Methods
| Improve this Doc View SourceProvideValue(IServiceProvider)
Declaration
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceProvider | serviceProvider |
Returns
| Type | Description |
|---|---|
| Object |