2010-12-14 112 views

回答

1
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; 
    } 
} 
相關問題