title: Binding(Converter) in Code Behind
body: <pre><code>&lt;local:LabelTemp x:Key="labelTemplate"/&gt;
          &lt;DataTemplate x:Key="labelTemp"&gt;
              &lt;TextBlock Text="{Binding Converter={StaticResource labelTemplate},Path=Item.Items}"/&gt;
          &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>Can anyone help me how to write the above Xaml code into Code Behind C#.
  Im using this code into Pie Chart LabelTemplate. </p>