[]
        
(Showing Draft Content)

C1.WPF.Schedule.EnsureEnumMemberConverter

EnsureEnumMemberConverter Class

Represents a Binding converter that indicates whether a binding source value is one of enum members specified in the converter parameter.

Inheritance
EnsureEnumMemberConverter
Implements
Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.4.6.2.dll
Syntax
[ValueConversion(typeof(Enum), typeof(bool))]
public class EnsureEnumMemberConverter : IValueConverter
Remarks
<xref href="C1.WPF.Schedule.EnsureEnumMemberConverter" data-throw-if-not-resolved="false"></xref> is a two-way converter. 

A converter parameter should be a string representing a list of enum member names separated by the ';' or ',' character.

Source - Target behavior:

Returns True if a source value is one of the enum members listed in a parameter; otherwise, False.

Target - Source behavior:

If target is True, then returns a first enum member (as enum, not as a string name) from members listed in a converter parameter.

Constructors

Name Description
EnsureEnumMemberConverter()

Fields

Name Description
Default

Gets an instance of EnsureEnumMemberConverter.

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.