title: Silverlight Element Binding
body: <p>I have a custom component, ExportCommandButton, that has two attached properties.  This component is designed to be attached to a button.  When clicked, the component would initiate the export method of the grid (Telerik RadGridView).  The problem I have is how can I pass the grid to the component via one of the attached properties?  I've tried element to element binding, but the GridView set property never fires.  How do you bind to a control and not a property of the control? </p>
  
  <pre><code>&lt;Button IsEnabled="{Binding Loaded}" 
         cmd:ExportCommandButton.GridView="{Binding ElementName=MyGrid}" 
         cmd:ExportCommandButton.Converter="{StaticResource MyConverter}"&gt;
        &lt;Button.Content&gt;
         &lt;StackPanel Orientation="Horizontal"&gt;
            &lt;Image Source="/Assets/xls.png" /&gt;
            &lt;TextBlock VerticalAlignment="Center" Text="Export" Margin="5,0,0,0" /&gt;
         &lt;/StackPanel&gt;
        &lt;/Button.Content&gt;
  &lt;/Button&gt;
  </code></pre>