Table of Contents

Method ConvertWithAction

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

ConvertWithAction<TConvertFrom, TConvertTo>(TConvertFrom?, Action<ValueConvertEventArgs<TConvertFrom?, TConvertTo?>>?, out TConvertTo?)

Calls the specified conversion action.

public static bool ConvertWithAction<TConvertFrom, TConvertTo>(TConvertFrom? value, Action<ValueConvertEventArgs<TConvertFrom?, TConvertTo?>>? convert, out TConvertTo? result)

Parameters

value TConvertFrom

Value to convert.

convert Action<ValueConvertEventArgs<TConvertFrom, TConvertTo>>

Conversion action.

result TConvertTo

Result of the conversion.

Returns

bool

True if value was converted using the conversion event; False otherwise.

Type Parameters

TConvertFrom

Type of the value to convert from.

TConvertTo

Type of the value to convert to.