1
태그 스트립으로 항목을 끌면 tabcontrol을 사용하여 드래그 앤 드롭을 구현하고 싶습니다. 가장 효율적이고 비 강박적 인 방법은 무엇입니까? WPF 탭 컨트롤 끌어서 놓기 : 탭을 앞쪽으로 가져 오기
당신에게태그 스트립으로 항목을 끌면 tabcontrol을 사용하여 드래그 앤 드롭을 구현하고 싶습니다. 가장 효율적이고 비 강박적 인 방법은 무엇입니까? WPF 탭 컨트롤 끌어서 놓기 : 탭을 앞쪽으로 가져 오기
당신에게private void TabControl_DragEnter(object sender, DragEventArgs e)
{
TabItem item = e.Source as TabItem;
TabControl tabControl = sender as TabControl;
if (item != null && tabControl != null)
{
if (tabControl.SelectedItem != item)
tabControl.SelectedItem = item;
}
}
감사