title: XAML Binding to a converter
body: <p>what I am trying to do is relatively simple.  I am just trying to bind the Y element of a TranslateTransform on an ellipse to 1/2 the height of the ellipse:</p>
  
  <pre><code>    &lt;Ellipse Name="EllipseOnlyLFA" Height="200" Fill="Yellow" HorizontalAlignment="Left" VerticalAlignment="Bottom" ClipToBounds="True"&gt;
          &lt;Ellipse.Width&gt;
              &lt;Binding ElementName="EllipseOnlyLFA" Path="Height"/&gt;
          &lt;/Ellipse.Width&gt;
          &lt;Ellipse.RenderTransform&gt;
              &lt;TranslateTransform&gt;
                  &lt;TranslateTransform.Y&gt;
                      &lt;Binding Converter="MultiplyByFactor" ElementName="EllipseOnlyLFA" Path="Height"  ConverterParameter="0.5"/&gt;
                  &lt;/TranslateTransform.Y&gt;
              &lt;/TranslateTransform&gt;
          &lt;/Ellipse.RenderTransform&gt;
      &lt;/Ellipse&gt;
  </code></pre>
  
  <p>I also have the following converter:</p>
  
  <pre><code>public class MultiplyByFactor : IValueConverter
  {
      public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
      {
          return ((double)value * (double)parameter);
      }
  
      public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
      {
          return true;
      }
  }
  </code></pre>
  
  <p>I am getting an error on the XAML line where I actually use the converter.  The error is </p>
  
  <blockquote>
    <p>'Set property
    'System.Windows.Data.Binding.Converter'
    threw an exception.' Line number '22'
    and line position '8'.</p>
  </blockquote>
  
  <p>Can anyone shed some light on how to do this?  <strong>EDIT: Yes, I have the converter added as a resource.</strong></p>