[]
Represents a Binding converter that indicates whether a binding source value is an enum member specified in the converter parameter.
[ValueConversion(typeof(ImportanceEnum), typeof(bool))]
public class ImportanceEnumMemberConverter : IValueConverter
<xref href="C1.WPF.Schedule.ImportanceEnumMemberConverter" data-throw-if-not-resolved="false"></xref> is a two-way converter.
Source - Target behavior:
If a binding source value is an enum member specified in a converter parameter, then a binding target value is True; otherwise, False.
Target - Source behavior:
If target is True, then the source is an enum member specified in a parameter. If target is False and parameter is C1.Schedule.ImportanceEnum.High or C1.Schedule.ImportanceEnum.Low, then source is C1.Schedule.ImportanceEnum.Normal.
Name | Description |
---|---|
ImportanceEnumMemberConverter() |
Name | Description |
---|---|
Default | Gets an instance of ImportanceEnumMemberConverter. |
Name | Description |
---|---|
Convert(object, Type, object, CultureInfo) | Converts a value. The data binding engine calls this method when it propagates a value from the binding source to the binding target. |
ConvertBack(object, Type, object, CultureInfo) | Converts a value. The data binding engine calls this method when it propagates a value from the binding target to the binding source. |