View Revisions: Issue #1735

Summary 0001735: Multibinding issues
Revision 2020-06-24 03:56 by ai_enabled
Steps To Reproduce Here is the code:
<Control>
    <Control.Visibility>
        <MultiBinding Converter="{StaticResource BoolToVisibilityConverter}">
            <Binding Path="EffectsToAdd.Length" Converter="{StaticResource PositiveNumberToBooleanConverter}" />
            <Binding Path="EffectsToRemove.Length" Converter="{StaticResource PositiveNumberToBooleanConverter}" />
        </MultiBinding>
    </Control.Visibility>
</Control>

I've also tried a simpler code (HasEffectsToAdd and HasEffectsToRemove are both boolean properties from the view model):
<Control>
    <Control.Visibility>
        <MultiBinding Converter="{StaticResource BoolToVisibilityConverter}">
            <Binding Path="HasEffectsToAdd" />
            <Binding Path="HasEffectsToRemove" />
        </MultiBinding>
    </Control.Visibility>
</Control>

but have exactly the same issue with Multibinding ("Can't set 'null' on property 'Control.Visibility' of type 'Visibility'.") — I've checked and BoolToVisibilityConverter was not even called.
Revision 2020-06-24 03:56 by ai_enabled
Steps To Reproduce Here is the code:
<Control>
    <Control.Visibility>
        <MultiBinding Converter="{StaticResource BoolToVisibilityConverter}">
            <Binding Path="EffectsToAdd.Length" Converter="{StaticResource PositiveNumberToBooleanConverter}" />
            <Binding Path="EffectsToRemove.Length" Converter="{StaticResource PositiveNumberToBooleanConverter}" />
        </MultiBinding>
    </Control.Visibility>
</Control>


I've also tried simpler code (HasEffectsToAdd and HasEffectsToRemove are both boolean properties from the view model):
<Control>
    <Control.Visibility>
        <MultiBinding Converter="{StaticResource BoolToVisibilityConverter}">
            <Binding Path="HasEffectsToAdd" />
            <Binding Path="HasEffectsToRemove" />
        </MultiBinding>
    </Control.Visibility>
</Control>

but have exactly the same issue with Multibinding ("Can't set 'null' on property 'Control.Visibility' of type 'Visibility'.") — I've checked and BoolToVisibilityConverter was not even called.
Revision 2020-06-24 03:55 by ai_enabled
Steps To Reproduce Here is the code:
<Control>
    <Control.Visibility>
        <MultiBinding Converter="{StaticResource BoolToVisibilityConverter}">
            <Binding Path="EffectsToAdd.Length" Converter="{StaticResource PositiveNumberToBooleanConverter}" />
            <Binding Path="EffectsToRemove.Length" Converter="{StaticResource PositiveNumberToBooleanConverter}" />
        </MultiBinding>
    </Control.Visibility>
</Control>



I've also tried simpler code:
<Control>
    <Control.Visibility>
        <MultiBinding Converter="{StaticResource BoolToVisibilityConverter}">
            <Binding Path="HasEffectsToAdd" />
            <Binding Path="HasEffectsToRemove" />
        </MultiBinding>
    </Control.Visibility>
</Control>

The same issue with Multibinding ("Can't set 'null' on property 'Control.Visibility' of type 'Visibility'.") — I've checked and BoolToVisibilityConverter was not even called.