What’s the code-behind equivalent of this code?
<SomeControl SomeProperty="{Binding}"/>
(If I wanted to do that in the code-behind of SomeControl instead of in the consumer’s XAML.)
That is, how do I construct a Binding object such that I bind directly to the DataContext of my current object, instead of to some property?
Since
{Binding}is just a shortcut for{Binding Path=.}, it should be just as simple as