2010-12-14 62 views

Répondre

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; 
    } 
}