karthik keyan

karthik keyan

  • NA
  • 35
  • 806

Converter parameter value through binding

Sep 11 2015 3:23 AM

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