title: Workaround for inability to bind to a property that belongs to a WindowsFormsHost Child object in C#/XAML app?
body: <p>I have a C# WPF 4.51 app.  As far as I can tell, you can not bind to a property belonging to an object that is the child of a WPF <em>WindowsFormsHost</em> control.  (If I am wrong in this assumption please show me how to do it):</p>
  
  <p><a href="https://stackoverflow.com/questions/10885211/bind-with-windowsformshost">Bind with WindowsFormsHost</a></p>
  
  <p>In my case, I have a page that contains a <em>WindowsFormsHost</em> control whose <em>Child</em> object is a <em>ScintillaNET</em> editor control:</p>
  
  <p><a href="https://github.com/jacobslusser/ScintillaNET" rel="nofollow noreferrer">https://github.com/jacobslusser/ScintillaNET</a></p>
  
  <pre><code>    &lt;WindowsFormsHost x:Name="wfhScintillaTest"
                        Width="625"
                        Height="489"
                        Margin="206,98,0,0"
                        HorizontalAlignment="Left"
                        VerticalAlignment="Top"&gt;
          &lt;WindowsFormsHost.Child&gt;
              &lt;sci:Scintilla x:Name="scintillaCtl" /&gt;
          &lt;/WindowsFormsHost.Child&gt;
      &lt;/WindowsFormsHost&gt;
  </code></pre>
  
  <p>The child control works and displays fine.  If it were a normal WPF control I would bind the <em>Text</em> property of the <em>Scintilla</em> editor control to some <em>string</em> property in my <em>ViewModel</em>, so that all I had to do to update the content of the <em>Scintilla</em> editor control is update that <em>string</em> property.  </p>
  
  <p>But since I can't bind to a property belonging to a <em>WindowsFormsHost</em> child object, I'm looking for a strategy/solution that not completely awkward or kludgy.  Has anybody faced this scenario before and has a reasonable strategy that solves my binding/update problem?</p>