共用方式為


ListBox.OnSelectionChanged(SelectionChangedEventArgs) 方法

定義

藉由引發 SelectionChanged 事件,回應清單方塊選取範圍變更。

protected:
 override void OnSelectionChanged(System::Windows::Controls::SelectionChangedEventArgs ^ e);
protected override void OnSelectionChanged (System.Windows.Controls.SelectionChangedEventArgs e);
override this.OnSelectionChanged : System.Windows.Controls.SelectionChangedEventArgs -> unit
Protected Overrides Sub OnSelectionChanged (e As SelectionChangedEventArgs)

參數

適用於