CollectionView.OnCollectionChanged メソッド
定義
CollectionChanged イベントを発生させます。Raises the CollectionChanged event.
オーバーロード
OnCollectionChanged(NotifyCollectionChangedEventArgs) |
CollectionChanged イベントを発生させます。Raises the CollectionChanged event. |
OnCollectionChanged(Object, NotifyCollectionChangedEventArgs) |
CollectionChanged イベントを発生させます。Raises the CollectionChanged event. |
OnCollectionChanged(NotifyCollectionChangedEventArgs)
CollectionChanged イベントを発生させます。Raises the CollectionChanged event.
protected:
virtual void OnCollectionChanged(System::Collections::Specialized::NotifyCollectionChangedEventArgs ^ args);
protected virtual void OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs args);
abstract member OnCollectionChanged : System.Collections.Specialized.NotifyCollectionChangedEventArgs -> unit
override this.OnCollectionChanged : System.Collections.Specialized.NotifyCollectionChangedEventArgs -> unit
Protected Overridable Sub OnCollectionChanged (args As NotifyCollectionChangedEventArgs)
パラメーター
イベント ハンドラーに渡す NotifyCollectionChangedEventArgs オブジェクト。The NotifyCollectionChangedEventArgs object to pass to the event handler.
注釈
このメソッドを呼び出してイベントを発生させる前に、並べ替え、フィルター処理、またはグループ化の条件を考慮して CollectionChanged ください。Take any sorting, filtering, or grouping criteria into consideration before calling this method to raise the CollectionChanged event.
適用対象
OnCollectionChanged(Object, NotifyCollectionChangedEventArgs)
CollectionChanged イベントを発生させます。Raises the CollectionChanged event.
protected:
void OnCollectionChanged(System::Object ^ sender, System::Collections::Specialized::NotifyCollectionChangedEventArgs ^ args);
protected void OnCollectionChanged (object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs args);
member this.OnCollectionChanged : obj * System.Collections.Specialized.NotifyCollectionChangedEventArgs -> unit
Protected Sub OnCollectionChanged (sender As Object, args As NotifyCollectionChangedEventArgs)
パラメーター
- sender
- Object
イベントの送信元。The sender of the event.
イベント ハンドラーに渡す NotifyCollectionChangedEventArgs オブジェクト。The NotifyCollectionChangedEventArgs object to pass to the event handler.
注釈
このメソッドは、 ProcessCollectionChanged が適切なスレッドディスパッチャー上にあり、 UIUI 別のスレッドから更新されたことがない場合にを呼び出します。また、変更をディスパッチャーにポストして、正しいスレッドで処理します。This method calls ProcessCollectionChanged if it is on the correct UIUI thread dispatcher and has never been updated from a different thread, or posts the change to the dispatcher to process it on the correct thread.