private void OnListMouseDown(object sender, MouseEventArgs eventArgs) { if (eventArgs.Button == MouseButton.mbLeft) { ListBox aList = (ListBox)sender; if (aList.Items.Count > 0 && aList.SelIndex >= 0) { aList.BeginDrag(false); } } }