5 writes to DataContext
System.Windows.Forms.Tests (5)
System\Windows\Forms\ControlTests.cs (5)
747control.DataContext = dataContext; 755control.DataContext = null; 764childControl.DataContext = dataContext; 766control.DataContext = dataContext; 774childControl.DataContext = null;
10 references to DataContext
System.Windows.Forms (5)
System\Windows\Forms\Control.cs (5)
737: ParentInternal?.DataContext; 740if (Equals(value, DataContext)) 747if (Properties.ContainsKey(s_dataContextProperty) && Equals(ParentInternal?.DataContext, value)) 3643/// Occurs when the value of the <see cref="DataContext"/> property changes. 6940if (Equals(Properties.GetValueOrDefault<object>(s_dataContextProperty), Parent?.DataContext))
System.Windows.Forms.Tests (5)
System\Windows\Forms\ControlTests.cs (5)
748Assert.Equal(dataContext, control.DataContext); 749Assert.Equal(dataContext, childControl.DataContext); 759Assert.Null(childControl.DataContext); 769Assert.Equal(dataContext, control.DataContext); 770Assert.Equal(dataContext, childControl.DataContext);