title: DataTemplate bound items not changing with bound content
body: <p>I have a set of tabs I'm displaying in an Avalonia <code>TabControl</code>, each represented by a <code>TabModel</code> object.</p>
  <p><code>TabModel.cs</code>:</p>
  <pre><code>public class TabModel
  {
      public string Name { get; set; }
      public string Content { get; set; }
  }
  </code></pre>
  <p>I want each tab to have a <code>TextBlock</code> as its title (similar to <a href="https://docs.avaloniaui.net/docs/controls/tabcontrol#binding-support" rel="nofollow noreferrer">the example from the docs</a>) and a custom control as the body. When loading the <code>TabControl</code>, the titles and body display properly. However, when I modify the <code>Name</code> or <code>Content</code> fields, the controls won't update. When <code>Content</code> is changed by the control (through the <code>TwoWay</code> binding), the change is reflected in the field and any changes made by the code are forgotten.</p>
  <p>Xaml:</p>
  <pre><code>&lt;TabControl Items=&quot;{Binding Tabs}&quot;&gt;
  
      &lt;TabControl.ItemTemplate&gt;
          &lt;TreeDataTemplate DataType=&quot;models:TabModel&quot;&gt;
              &lt;TextBlock Text=&quot;{Binding Name}&quot; /&gt;
          &lt;/TreeDataTemplate&gt;
      &lt;/TabControl.ItemTemplate&gt;
  
      &lt;TabControl.ContentTemplate&gt;
          &lt;TreeDataTemplate DataType=&quot;models:TabModel&quot;&gt;
              &lt;controls:BoundEditor
                  BoundText=&quot;{Binding Content, Mode=TwoWay}&quot; Name=&quot;BoundEditor&quot; /&gt;
          &lt;/TreeDataTemplate&gt;
      &lt;/TabControl.ContentTemplate&gt;
  
  &lt;/TabControl&gt;
  
  </code></pre>