我希望将 OuterDialog 用户控件中的属性传递到 InnerDialog 中,如下所示:
<uc:OuterDialog x:Name="test" Grid.ColumnSpan="2" Grid.RowSpan="2" Height="768" Width="1366" IsOpen="False">
<uc:StandardDialog Height="768" Width="1366" Grid.ColumnSpan="2">
<uc:InnerDialog AncestorDelegate="AnotherDialog.Close">
</uc:InnerDialog >
</uc:StandardDialog>
</uc:OuterDialog >
我可以在不借助代码的情况下做到这一点吗?
如何获得对“最近”祖先对象的引用并将其传递?