Implemented interface member:
property
BindingContext
System.Windows.Forms.IBindableComponent.BindingContext
2 overrides of BindingContext
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
380public override BindingContext? BindingContext
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
250public override BindingContext? BindingContext
114 writes to BindingContext
System.Windows.Forms (1)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
269set => base.BindingContext = value;
System.Windows.Forms.Tests (113)
System\Windows\Forms\ControlTests.ControlCollection.cs (16)
658owner.BindingContext = parentBindingContext; 659control.BindingContext = bindingContext; 808owner.BindingContext = parentBindingContext; 809control.BindingContext = bindingContext; 961owner.BindingContext = parentBindingContext; 962control.BindingContext = bindingContext; 1034owner.BindingContext = parentBindingContext; 1035control.BindingContext = bindingContext; 2361owner.BindingContext = parentBindingContext; 2362control.BindingContext = bindingContext; 2505owner.BindingContext = parentBindingContext; 2506control.BindingContext = bindingContext; 2637owner.BindingContext = parentBindingContext; 2638control.BindingContext = bindingContext; 2701owner.BindingContext = parentBindingContext; 2702control.BindingContext = bindingContext;
System\Windows\Forms\ControlTests.Handlers.cs (3)
706BindingContext = childContext1 710BindingContext = childContext2 4333BindingContext = context
System\Windows\Forms\ControlTests.Properties.cs (24)
2144BindingContext = bindingContext 2159BindingContext = bindingContext 2180BindingContext = value 2186control.BindingContext = value; 2197BindingContext = [] 2200control.BindingContext = value; 2205control.BindingContext = value; 2225control.BindingContext = context1; 2230control.BindingContext = context1; 2236control.BindingContext = context2; 2241control.BindingContext = null; 2247control.BindingContext = context1; 2288control.BindingContext = context1; 2297control.BindingContext = context1; 2307control.BindingContext = context2; 2316control.BindingContext = null; 2328control.BindingContext = context1; 2344BindingContext = childContext1 2348BindingContext = childContext2 2381control.BindingContext = context1; 2390control.BindingContext = context1; 2400control.BindingContext = context2; 2409control.BindingContext = null; 2421control.BindingContext = context1;
System\Windows\Forms\DataGridViewTests.cs (4)
2807control.BindingContext = context; 2848control.BindingContext = context; 4038_dataGridView.BindingContext = context1; 4043_dataGridView.BindingContext = context2;
System\Windows\Forms\ListBoxTests.cs (3)
2446BindingContext = bindingContext, 2928BindingContext = bindingContext, 5822BindingContext = bindingContext,
System\Windows\Forms\ListControlTests.cs (61)
146BindingContext = value 155control.BindingContext = value; 169BindingContext = [] 172control.BindingContext = value; 180control.BindingContext = value; 198control.BindingContext = value; 206control.BindingContext = value; 225control.BindingContext = value; 233control.BindingContext = value; 249BindingContext = originalValue, 253control.BindingContext = value; 261control.BindingContext = value; 277BindingContext = originalValue, 282control.BindingContext = value; 290control.BindingContext = value; 312control.BindingContext = context1; 317control.BindingContext = context1; 323control.BindingContext = context2; 328control.BindingContext = null; 334control.BindingContext = context1; 346BindingContext = context, 362BindingContext = context, 378BindingContext = context, 423BindingContext = context, 454BindingContext = context, 496BindingContext = context, 523BindingContext = context, 860BindingContext = context 896BindingContext = context, 933BindingContext = context, 956BindingContext = context, 1143BindingContext = context 1168BindingContext = context, 1197BindingContext = context, 1224BindingContext = context, 1735BindingContext = context 1765BindingContext = context, 1792BindingContext = context, 1812BindingContext = context, 1840BindingContext = context, 1922BindingContext = context, 1955BindingContext = context, 1980BindingContext = context, 2010control.BindingContext = []; 2025BindingContext = context, 2063BindingContext = context, 2082BindingContext = context, 2162BindingContext = [], 2172BindingContext = [], 2183BindingContext = [], 2194BindingContext = [], 2205BindingContext = [], 2275BindingContext = [], 2286BindingContext = [], 2297BindingContext = [], 2308BindingContext = [], 2319BindingContext = [], 2477BindingContext = [], 2494BindingContext = [], 2527BindingContext = [], 2544BindingContext = [],
System\Windows\Forms\ToolStripTests.cs (2)
1086BindingContext = bindingContext 1101BindingContext = bindingContext
155 references to BindingContext
System.Windows.Forms (15)
System\Windows\Forms\Control.cs (2)
952return parent.BindingContext; 10795BindingContext.UpdateBinding(BindingContext, DataBindings[i]);
System\Windows\Forms\Controls\DataGridView\DataGridView.DataConnection.cs (5)
1053if (_owner.BindingContext is null) 1064if (DataSource is not null && _owner.BindingContext is not null && DataSource != Convert.DBNull) 1079CurrencyManager = _owner.BindingContext[DataSource, DataMember] as CurrencyManager; 1510if (_owner.BindingContext is null) 1523if (_owner.BindingContext[newDataSource] is not CurrencyManager cm)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (4)
793if (cm is null && DataSource is not null && dataGridView?.BindingContext is not null && !(DataSource == Convert.DBNull)) 805cm = (CurrencyManager)dataGridView.BindingContext[DataSource]; 1360DataManager = (CurrencyManager)DataGridView!.BindingContext![DataSource!, displayBindingMember.BindingPath]; 1391DataManager = (CurrencyManager)DataGridView!.BindingContext![DataSource!, valueBindingMember.BindingPath];
System\Windows\Forms\Controls\ListControl\ListControl.cs (2)
702if (newDataSource is not null && BindingContext is not null && newDataSource != Convert.DBNull) 709newDataManager = (CurrencyManager)BindingContext[newDataSource, newDisplayMember.BindingPath];
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
392return parent.BindingContext;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
259BindingContext? bm = base.BindingContext;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewDesigner.cs (2)
225newCM = (CurrencyManager?)dataGridView.BindingContext?[dataGridView.DataSource, dataGridView.DataMember]; 245if (dataGridView.BindingContext is null)
System.Windows.Forms.Design.Tests (1)
System\ComponentModel\Design\ByteViewerTests.cs (1)
32Assert.Null(control.BindingContext);
System.Windows.Forms.Tests (136)
System\Windows\Forms\AxHostTests.cs (2)
40Assert.Null(control.BindingContext); 134Assert.Null(control.BindingContext);
System\Windows\Forms\ButtonBaseTests.cs (1)
32Assert.Null(control.BindingContext);
System\Windows\Forms\ButtonTests.cs (1)
34Assert.Null(control.BindingContext);
System\Windows\Forms\CheckBoxTests.cs (1)
33Assert.Null(control.BindingContext);
System\Windows\Forms\ComboBoxTests.cs (1)
37Assert.Null(control.BindingContext);
System\Windows\Forms\ControlTests.ControlCollection.cs (20)
579Assert.Null(control.BindingContext); 623Assert.Null(control.BindingContext); 660Assert.Same(bindingContext, control.BindingContext); 768Assert.Same(expectedBindingContext, control.BindingContext); 810Assert.Same(bindingContext, control.BindingContext); 927Assert.Same(expectedBindingContext, control.BindingContext); 963Assert.Same(bindingContext, control.BindingContext); 1004Assert.Same(expectedBindingContext, control.BindingContext); 1036Assert.Same(bindingContext, control.BindingContext); 1084Assert.Same(expectedBindingContext, control.BindingContext); 2276Assert.Null(control.BindingContext); 2323Assert.Null(control.BindingContext); 2363Assert.Same(expectedBindingContext, control.BindingContext); 2467Assert.Same(bindingContext, control.BindingContext); 2507Assert.Same(expectedBindingContext, control.BindingContext); 2600Assert.Same(bindingContext, control.BindingContext); 2639Assert.Same(expectedBindingContext, control.BindingContext); 2673Assert.Same(bindingContext, control.BindingContext); 2703Assert.Same(expectedBindingContext, control.BindingContext); 2751Assert.Same(bindingContext, control.BindingContext);
System\Windows\Forms\ControlTests.cs (5)
27Assert.Null(control.BindingContext); 116Assert.Null(control.BindingContext); 212Assert.Null(control.BindingContext); 308Assert.Null(control.BindingContext); 404Assert.Null(control.BindingContext);
System\Windows\Forms\ControlTests.Properties.cs (41)
2150Assert.Same(bindingContext, control.BindingContext); 2165Assert.Null(control.BindingContext); 2182Assert.Same(value, control.BindingContext); 2187Assert.Same(value, control.BindingContext); 2201Assert.Same(value, control.BindingContext); 2206Assert.Same(value, control.BindingContext); 2226Assert.Same(context1, control.BindingContext); 2231Assert.Same(context1, control.BindingContext); 2237Assert.Same(context2, control.BindingContext); 2242Assert.Null(control.BindingContext); 2248Assert.Same(context1, control.BindingContext); 2289Assert.Same(context1, control.BindingContext); 2290Assert.Same(context1, child1.BindingContext); 2291Assert.Same(context1, child2.BindingContext); 2298Assert.Same(context1, control.BindingContext); 2299Assert.Same(context1, child1.BindingContext); 2300Assert.Same(context1, child2.BindingContext); 2308Assert.Same(context2, control.BindingContext); 2309Assert.Same(context2, child1.BindingContext); 2310Assert.Same(context2, child2.BindingContext); 2317Assert.Null(control.BindingContext); 2318Assert.Null(child1.BindingContext); 2319Assert.Null(child2.BindingContext); 2329Assert.Same(context1, control.BindingContext); 2330Assert.Same(context1, child1.BindingContext); 2331Assert.Same(context1, child2.BindingContext); 2382Assert.Same(context1, control.BindingContext); 2383Assert.Same(childContext1, child1.BindingContext); 2384Assert.Same(childContext2, child2.BindingContext); 2391Assert.Same(context1, control.BindingContext); 2392Assert.Same(childContext1, child1.BindingContext); 2393Assert.Same(childContext2, child2.BindingContext); 2401Assert.Same(context2, control.BindingContext); 2402Assert.Same(childContext1, child1.BindingContext); 2403Assert.Same(childContext2, child2.BindingContext); 2410Assert.Null(control.BindingContext); 2411Assert.Same(childContext1, child1.BindingContext); 2412Assert.Same(childContext2, child2.BindingContext); 2422Assert.Same(context1, control.BindingContext); 2423Assert.Same(childContext1, child1.BindingContext); 2424Assert.Same(childContext2, child2.BindingContext);
System\Windows\Forms\DataGridViewCellTests.cs (7)
202Assert.NotNull(control.BindingContext); 845Assert.NotNull(control.BindingContext); 881Assert.NotNull(control.BindingContext); 4049Assert.NotNull(control.BindingContext); 4092Assert.NotNull(control.BindingContext); 4356Assert.NotNull(control.BindingContext); 5148Assert.NotNull(control.BindingContext);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (2)
2418Assert.NotNull(control.BindingContext); 3685Assert.NotNull(control.BindingContext);
System\Windows\Forms\DataGridViewRowTests.cs (8)
110Assert.NotNull(control.BindingContext); 328Assert.NotNull(control.BindingContext); 355Assert.NotNull(control.BindingContext); 943Assert.NotNull(control.BindingContext); 1873Assert.NotNull(control.BindingContext); 2342Assert.NotNull(control.BindingContext); 4334Assert.NotNull(control.BindingContext); 4459Assert.NotNull(control.BindingContext);
System\Windows\Forms\DataGridViewTextBoxEditingControlTests.cs (1)
36Assert.Null(control.BindingContext);
System\Windows\Forms\DateTimePickerTests.cs (1)
34Assert.Null(control.BindingContext);
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
33Assert.Null(control.BindingContext);
System\Windows\Forms\FlowLayoutPanelTests.cs (1)
32Assert.Null(control.BindingContext);
System\Windows\Forms\GroupBoxTests.cs (1)
30Assert.Null(control.BindingContext);
System\Windows\Forms\HScrollBarTests.cs (1)
27Assert.Null(control.BindingContext);
System\Windows\Forms\LabelTests.cs (1)
29Assert.Null(control.BindingContext);
System\Windows\Forms\ListBoxTests.cs (1)
30Assert.Null(control.BindingContext);
System\Windows\Forms\ListControlTests.cs (17)
31Assert.Null(control.BindingContext); 148Assert.Same(value, control.BindingContext); 156Assert.Same(value, control.BindingContext); 173Assert.Same(value, control.BindingContext); 181Assert.Same(value, control.BindingContext); 199Assert.Same(value, control.BindingContext); 207Assert.Same(value, control.BindingContext); 226Assert.Same(value, control.BindingContext); 234Assert.Same(value, control.BindingContext); 254Assert.Same(value, control.BindingContext); 262Assert.Same(value, control.BindingContext); 283Assert.Same(value, control.BindingContext); 313Assert.Same(context1, control.BindingContext); 318Assert.Same(context1, control.BindingContext); 324Assert.Same(context2, control.BindingContext); 329Assert.Null(control.BindingContext); 335Assert.Same(context1, control.BindingContext);
System\Windows\Forms\ListViewTests.cs (1)
37Assert.Null(control.BindingContext);
System\Windows\Forms\MdiClientTests.cs (1)
29Assert.Null(control.BindingContext);
System\Windows\Forms\MonthCalendarTests.cs (1)
33Assert.Null(control.BindingContext);
System\Windows\Forms\PanelTests.cs (1)
33Assert.Null(control.BindingContext);
System\Windows\Forms\PictureBoxTests.cs (1)
32Assert.Null(control.BindingContext);
System\Windows\Forms\ProgressBarTests.cs (1)
29Assert.Null(control.BindingContext);
System\Windows\Forms\RadioButtonTests.cs (1)
33Assert.Null(control.BindingContext);
System\Windows\Forms\RichTextBoxTests.cs (1)
40Assert.Null(control.BindingContext);
System\Windows\Forms\ScrollableControlTests.cs (1)
33Assert.Null(control.BindingContext);
System\Windows\Forms\ScrollBarTests.cs (1)
28Assert.Null(control.BindingContext);
System\Windows\Forms\SplitterPanelTests.cs (1)
39Assert.Null(control.BindingContext);
System\Windows\Forms\SplitterTests.cs (1)
28Assert.Null(control.BindingContext);
System\Windows\Forms\TabControlTests.cs (1)
31Assert.Null(control.BindingContext);
System\Windows\Forms\TableLayoutPanelTests.cs (1)
34Assert.Null(control.BindingContext);
System\Windows\Forms\TabPageTests.cs (2)
37Assert.Null(control.BindingContext); 146Assert.Null(control.BindingContext);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
35Assert.Null(control.BindingContext);
System\Windows\Forms\TreeViewTests.cs (1)
28Assert.Null(control.BindingContext);
System\Windows\Forms\VScrollBarTests.cs (1)
26Assert.Null(control.BindingContext);
System\Windows\Forms\WebBrowserTests.cs (1)
29Assert.Null(control.BindingContext);
TextBoxTests.cs (1)
35Assert.Null(control.BindingContext);
TrackBarTests.cs (1)
30Assert.Null(control.BindingContext);
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
978OnPropertyChanged("BindingContext", this.BindingContext);