title: silverlight 2 binding data to transforms?
body: <p>I am working on creating a tag cloud in Silverlight 2 and trying to bind data from a List collection to a Scale transform on a TextBlock.  When running this I get an <code>AG_E_PARSER_BAD_PROPERTY_VALUE</code> error. Is it possible to data bind values to transforms in Silverlight 2? If not could I do something to the effect of FontSize={Binding Weight*18} to multiply the tag's weight by a base font size?  I know this won't work, but what is the best way to calculate property values for items in a DataTemplate?</p>
  
  <pre><code>&lt;DataTemplate&gt;
  &lt;TextBlock HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextWrapping="Wrap" d:IsStaticText="False" Text="{Binding Path=Text}" Foreground="#FF1151A8" FontSize="18" UseLayoutRounding="False" Margin="4,4,4,4" RenderTransformOrigin="0.5,0.5"&gt;
  &lt;TextBlock.RenderTransform&gt;
      &lt;TransformGroup&gt;
          &lt;ScaleTransform ScaleX="{Binding Path=WeightPlusOne}" ScaleY="{Binding Path=WeightPlusOne}"/&gt;
      &lt;/TransformGroup&gt;
  &lt;/TextBlock.RenderTransform&gt;
  </code></pre>
  
  <p>
  </p>