QuickConverter
QuickConverter copied to clipboard
Auto convert Bool to Visibility?
I think this type of conversion is very common, should we let QuickConverter do it automatically?
<Control Visibility="{qc:Binding '$P', P={Binding ABoolType}}" />
Including Hex/RGB String to Color/SolidColorBrush etc.
But should false be Hidden or Collapsed?
@ReneVogt
I think false should be converted to Hidden, because assuming the source is a nullable bool, then null should be converted to Collapse.
我想可以参考 CalcBinding.