person

person

  • NA
  • 96
  • 0

Referencing

Sep 10 2009 6:28 AM
Hi,

I have a usercontrol which is scaled according to the position of slider which resides in the same usercontrol. However if i want to move such a slider to a completely user control which is located elsewhere, how to ensure that the scale transform can reference the position of the slider?

<ScaleTransform
                    ScaleX="{Binding Path=Value,
                                ElementName=zoomSlider}"
                    ScaleY="{Binding Path=Value,
                                ElementName=zoomSlider}"/>

The binding will have to be changed, though to what? ----- MyUsercontrol.zoomSlider

Thanks in advance

Urema.