snipt

Ctrl+h for KB shortcuts

Text only

RelativeSource Binding Syntax

{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type AncestorType}}, Path=BindingPath}
https://snipt.net/embed/9e96d3396751aefa5936ab2efa21186c/
/raw/9e96d3396751aefa5936ab2efa21186c/
9e96d3396751aefa5936ab2efa21186c
text
Text only
1
2019-07-07T14:56:39
True
False
False
/api/public/snipt/984/
relativesource-binding-syntax
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type AncestorType}}, Path=BindingPath} </span></pre></div> </td></tr></table>
databinding, wpf