FrameworkElement.DataContextChanged イベント

定義

この要素のデータ コンテキストが変更されたときに発生します。

public:
 event System::Windows::DependencyPropertyChangedEventHandler ^ DataContextChanged;
public event System.Windows.DependencyPropertyChangedEventHandler DataContextChanged;
member this.DataContextChanged : System.Windows.DependencyPropertyChangedEventHandler 
Public Custom Event DataContextChanged As DependencyPropertyChangedEventHandler 

イベントの種類

注釈

データ コンテキストとデータ バインディングの詳細については、「データ バインディングの 概要」を参照してください。

Important

要素の DataContext が変更されると、この要素のすべてのデータ バインド プロパティが影響を受ける可能性があります。 これは、データ コンテキストを継承する論理ツリー内の現在の要素の子要素である要素、および現在の要素自体にも適用されます。 このような既存のバインドはすべて、新しい DataContext を再解釈する必要があり、バインドの結果を再評価します。 データ バインディング エンジンは、 DataContextChanged イベントの発生に関連して、これらの再評価の順序について決定論的ではありません。 再評価は、イベントの前、イベントの後、または任意の組み合わせで発生する可能性があります。

適用対象

こちらもご覧ください