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