[]
        
(Showing Draft Content)

C1.WPF.Schedule.ImportanceEnumMemberConverter

ImportanceEnumMemberConverter Class

Represents a Binding converter that indicates whether a binding source value is an enum member specified in the converter parameter.

Inheritance
ImportanceEnumMemberConverter
Implements
Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.4.6.2.dll
Syntax
[ValueConversion(typeof(ImportanceEnum), typeof(bool))]
public class ImportanceEnumMemberConverter : IValueConverter
Remarks
<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.

Constructors

Name Description
ImportanceEnumMemberConverter()

Fields

Name Description
Default

Gets an instance of ImportanceEnumMemberConverter.

Methods

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.