3
有誰知道如何將一個ContextMenu添加到GridView中的每一行?下面的例子工作,但增加了整個控件的contextmenu,也在空白空間,滾動條,標題等。感謝您的任何幫助。WPF Gridview上下文菜單
<GridView ContextMenu="{StaticResource DisplayedContextMenu}" ItemsSource="{Binding Data}" >
<GridView.View>
<GridView>
<GridViewColumn Header="Position" Width="0" DisplayMemberBinding="{Binding Position}" />
...