This project is read-only.

Feature request: Multi binding expression converter

Apr 18, 2012 at 8:28 PM
Edited Apr 18, 2012 at 8:29 PM

I should be able to set the other operand from binding, not only the first one.

The current expression converter only performs on one binding allowing the second operand to be only a constant (i.e. MyProperty * 2), in my scenario I need to perform arithmetic actions on where the 2nd operand is also a bound value, i.e:

<TextBlock>
    <TextBlock.Text>
        <Binding Path="CurrentAmount" StringFormat="P2">
            <Binding.Converter>
                <con:MultiExpressionConverter Operator="Divide" Operand="{Binding TotalAmount}"/>
            </Binding.Converter>
        </Binding>
    </TextBlock.Text>
</TextBlock>