wpf - How to bind ScaleTransformation.X to slider in Silverlight 3 -
I need to zoom the canvas. It is possible to tie the scale transformation.x in the WPF slider. Value
I'm not able to do this in Silverlight - some errors.
Is it supported in SL3?
Thank you.
 The reason it does not work is that it is in the SL3  binding target  framework element < / Code> should be. (This restriction has been raised in SL4, but it does not help right now). 
 However the solution only takes a little back-thinking (or backward thoughts in this case). If the source object does not need the framework element then the answer is binding, which puts the binding on the  slider   value  property and put it in the  two  mode gives. 
 & lt; Border width = "200" height = "200" & gt; & Lt; Border.RenderTransform & gt; & Lt; ScaleTransform x: name = "goal conversion" /> & Lt; /Border.RenderTransform> & Lt ;! - Here's some content - & gt; & Lt; / Border & gt; & Lt; Slider value = "{Binding scale X, elementName = goal conversion, mode = two}" width = "200" canvas Tap = "250" min = "0.1" max = "2.0" />   
Comments
Post a Comment