正確處理 combobox 的 lostfocus

於 LostKeyboardFocus 事件函數中判斷
if (!(e.NewFocus is ComboBoxItem) && e.OldFocus == sender)
{
// 要處理的事情
}

留言

熱門文章