共用方式為


ListBoxItem.OnUnselected(RoutedEventArgs) 方法

定義

當在 ListBoxItem 內取消選取 ListBox 時呼叫。

protected:
 virtual void OnUnselected(System::Windows::RoutedEventArgs ^ e);
protected virtual void OnUnselected (System.Windows.RoutedEventArgs e);
abstract member OnUnselected : System.Windows.RoutedEventArgs -> unit
override this.OnUnselected : System.Windows.RoutedEventArgs -> unit
Protected Overridable Sub OnUnselected (e As RoutedEventArgs)

參數

e
RoutedEventArgs

事件資料。

備註

當 屬性變更為 false 時, IsSelected 會呼叫這個方法。

適用於