0
我試圖使用Windows窗體DataGridView
,因爲它看起來WPF DataGrid
不允許獲取選擇並且缺少獲取當前列和行索引等功能。使用WPF + Windows窗體拖放
<WindowsFormsHost Name="wfhFileEditorWindow" DockPanel.Dock="Top" AllowDrop="True" >
<WindowsFormsHost.Child>
<wf:DataGridView x:Name="dgFileEditorWindow" AllowDrop="True">
</wf:DataGridView>
</WindowsFormsHost.Child>
</WindowsFormsHost>
我用這個解決方法的問題是,該元素看起來不接受拖放,光標變成停止標誌。
任何建議我需要做些什麼才能打開DataGridView
?