ValueConverters.NET icon indicating copy to clipboard operation
ValueConverters.NET copied to clipboard

[Enhancement] EnumToBoolConverter Support `Enum` ConverterParameter Type

Open emako opened this issue 2 years ago • 2 comments

Summary

Please provide a brief summary of your proposal. Two to three sentences is best here.

Support that ConverterParameter is Enum and not just String. It can improve the flexibility for EnumToBoolConverter.

API Changes

Include a list of all API changes, additions, subtractions as would be required by your proposal.

EnumToBoolConverter

Intended Use Case

Provide a detailed example of where your proposal would be used and for what purpose.

<RadioButton Content="ON"
             IsChecked="{Binding EditType, Converter={x:Static conv:EnumToBoolConverter.Instance}, ConverterParameter={x:Static local:EditPanelValueType.Switch}, Mode=TwoWay, FallbackValue={markups:False}}" />

emako avatar Sep 13 '23 02:09 emako

cant agree more with your point

ErickWei avatar Oct 12 '23 08:10 ErickWei

Regarding MAUI? Its a shame…

thomasgalliker avatar Oct 12 '23 09:10 thomasgalliker