WPF 中如果ListBox的ItemSource為綁定的,則ListBox.Items為綁定的數據源,而非ListBoxItem。如果直接通過如下代碼會發現無法獲取ListBoxItem:
確定! 回上一頁