WinRT (Win 8) Store App XAML Bindings RelativeSourceMode FindAncestor missing?

前端 未结 2 571
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 05:28

does anybody know what the \"new way\" of FindAncestor in XAML bindings is? Looking at the RelativeSourceMode (http://msdn.microsoft.com/en-us/library/windows/apps/windows.u

2条回答
  •  难免孤独
    2020-12-09 05:52

    There is no general solution for this lack afaik, for example you can't access ListViewItem properties in DataTemplate so you can't react on selection change elegantly. You should find workaround for each particular case until FindAncestor will be added(I can't believe that this absence is not just due to the lack of time)

提交回复
热议问题