Control.BindingContextChanged Control.BindingContextChanged Control.BindingContextChanged Control.BindingContextChanged Event

정의

BindingContext 속성 값이 변경되면 발생합니다.Occurs when the value of the BindingContext property changes.

public:
 event EventHandler ^ BindingContextChanged;
public event EventHandler BindingContextChanged;
member this.BindingContextChanged : EventHandler 
Public Custom Event BindingContextChanged As EventHandler 

예제

다음 코드 예제에서는 EventHandler 위임할를 BindingContextChanged 의 이벤트를 TextBox 컨트롤입니다.The following code example adds an EventHandler delegate to the BindingContextChanged event of a TextBox control.

private:
   void AddEventHandler()
   {
      textBox1->BindingContextChanged += gcnew EventHandler(
         this, &Form1::BindingContext_Changed );
   }

   void BindingContext_Changed( Object^ /*sender*/, EventArgs^ /*e*/ )
   {
      Console::WriteLine( "BindingContext changed" );
   }
private void AddEventHandler()
{
   textBox1.BindingContextChanged += new EventHandler(BindingContext_Changed);
}

private void BindingContext_Changed(object sender, EventArgs e)
{
   Console.WriteLine("BindingContext changed");
}
Private Sub AddEventHandler()
    AddHandler textBox1.BindingContextChanged, _
       AddressOf BindingContext_Changed
End Sub    
   
Private Sub BindingContext_Changed(sender As Object, e As EventArgs)
    Console.WriteLine("BindingContext changed")
End Sub

설명

BindingContextControl 를 통해를 BindingContext 속성을 참조는 BindingContext 생성자입니다.To add a new BindingContext to the Control through the BindingContext property, see the BindingContext constructor.

이 이벤트가 발생 하는 경우는 BindingContext 속성이 변경 될 프로그래밍 방식으로 수정 하거나 사용자 상호 작용 하 여 변경 됩니다.This event is raised if the BindingContext property is changed is changed by either a programmatic modification or user interaction.

이벤트 처리에 대한 자세한 내용은 이벤트 처리 및 발생 을 참조하십시오.For more information about handling events, see Handling and Raising Events.

적용 대상

추가 정보