0
Answer

Converter parameter value through binding

karthik keyan

karthik keyan

9y
424
1

Hi ,Whether we can give Converter parameter value through binding or else is there any alternative regarding this.

<Rectangle VerticalAlignment="Stretch" x:Name="A" Width="{Binding AA, Converter={StaticResource AConvert}, ConverterParameter=300}"
Fill="#FFD49831" />
<Rectangle VerticalAlignment="Stretch" x:Name="B" Width="{Binding BB, Converter={StaticResource AConvert}, ConverterParameter={Binding ElementName=A},Path=Width}}"
Fill="Green" />

Thanks in advance