In a scenario like this:
<Grid>
...
<local:MyControl x:Name="MyCtl" Grid.Row="1"/>
<Popup PlacementTarget="{Binding ???}"/>
<Grid>
I need to bind PlacementTarget to a button named MyBtn within MyCtl. What is a cleanest way to do it?
In a scenario like this:
<Grid>
...
<local:MyControl x:Name="MyCtl" Grid.Row="1"/>
<Popup PlacementTarget="{Binding ???}"/>
<Grid>
I need to bind PlacementTarget to a button named MyBtn within MyCtl. What is a cleanest way to do it?