Note that there are some explanatory texts on larger screens.

plurals
  1. PODatabind RenderTransform Scaling in Silverlight 2 Beta 2
    primarykey
    data
    text
    <p>Anyone know if it's possible to databind the ScaleX and ScaleY of a render transform in Silverlight 2 Beta 2? Binding transforms is possible in WPF - But I'm getting an error when setting up my binding in Silverlight through XAML. Perhaps it's possible to do it through code?</p> <pre><code>&lt;Image Height="60" HorizontalAlignment="Right" Margin="0,122,11,0" VerticalAlignment="Top" Width="60" Source="Images/Fish128x128.png" Stretch="Fill" RenderTransformOrigin="0.5,0.5" x:Name="fishImage"&gt; &lt;Image.RenderTransform&gt; &lt;TransformGroup&gt; &lt;ScaleTransform ScaleX="1" ScaleY="1"/&gt; &lt;SkewTransform/&gt; &lt;RotateTransform/&gt; &lt;TranslateTransform/&gt; &lt;/TransformGroup&gt; &lt;/Image.RenderTransform&gt; &lt;/Image&gt; </code></pre> <p>I want to bind the ScaleX and ScaleY of the ScaleTransform element.</p> <p>I'm getting a runtime error when I try to bind against a double property on my data context: </p> <pre><code>Message="AG_E_PARSER_BAD_PROPERTY_VALUE [Line: 1570 Position: 108]" </code></pre> <p>My binding looks like this:</p> <pre><code>&lt;ScaleTransform ScaleX="{Binding Path=SelectedDive.Visibility}" ScaleY="{Binding Path=SelectedDive.Visibility}"/&gt; </code></pre> <p>I have triple verified that the binding path is correct - I'm binding a slidebar against the same value and that works just fine...</p> <p>Visibility is of type double and is a number between 0.0 and 30.0. I have a value converter that scales that number down to 0.5 and 1 - I want to scale the size of the fish depending on the clarity of the water. So I don't think it's a problem with the type I'm binding against...</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload