title: How can I bind a XAML element on a template with the C# back end instead of in the XAML?
body: <p>Here's what I have right now:</p>
  
  <p>I have this template that's simplified for the question:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Frame xmlns="http://xamarin.com/schemas/2014/forms" 
                        xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
     xmlns:t="clr-namespace:Japanese.Templates" 
     xmlns:local="clr-namespace:Japanese;assembly=Japanese" 
     x:Class="Japanese.Templates.RoundButtonText" x:Name="this"&gt;
     &lt;Label Text="ABC"     
            TextColor="{Binding LabelTextColor, Source={x:Reference this}}"
     /&gt;
  &lt;/Frame&gt;
  </code></pre>
  
  <p>and this C#</p>
  
  <pre><code>using Xamarin.Forms;
  
  namespace Japanese.Templates
  {
      public partial class RoundButtonText : BaseFrameButtonTemplate
      {
          public RoundButtonText()
          {
              InitializeComponent();
              // I would like to put the Label TextColor binding here instead of in the XAML
          }
  
      }
  }
  </code></pre>
  
  <p>Can someone help me by telling me how I can add the binding for the label TextColor <strong>in the C# back end</strong> so that it changes in exactly the same way as it currently does when it's written as:</p>
  
  <pre><code> TextColor="{Binding LabelTextColor, Source={x:Reference this}}"
  </code></pre>
  
  <p>in XAML?</p>