Class EnumToCollectionConverter
Inheritance
System.Object
System.Windows.Markup.MarkupExtension
EnumToCollectionConverter
Assembly: Vortex.Presentation.Wpf.dll
Syntax
[ValueConversion(typeof(Enum), typeof(IEnumerable<ValueDescription>))]
public class EnumToCollectionConverter : MarkupExtension, IValueConverter
Methods
Convert(Object, Type, Object, CultureInfo)
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
System.Type |
targetType |
|
System.Object |
parameter |
|
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Object |
|
ConvertBack(Object, Type, Object, CultureInfo)
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
System.Type |
targetType |
|
System.Object |
parameter |
|
System.Globalization.CultureInfo |
culture |
|
Returns
Type |
Description |
System.Object |
|
ProvideValue(IServiceProvider)
Declaration
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
Type |
Name |
Description |
System.IServiceProvider |
serviceProvider |
|
Returns
Type |
Description |
System.Object |
|
Overrides
System.Windows.Markup.MarkupExtension.ProvideValue(System.IServiceProvider)
Extension Methods