0
我動態使用模板創建ScatterView
項目?ActivationHost爲ElementMenu
我動態使用模板創建ScatterView
項目?ActivationHost爲ElementMenu
正確的迴應是:
<s:ElementMenu Name="emBallMenu"
VerticalAlignment="Top"
ActivationMode="HostInteraction"
ActivationHost="{Binding RelativeSource=RelativeSource FindAncestor,
AncestorType={x:Type s:ScatterViewItem}}}"
/>
我發現這個在here