Implemented interface member:
property
DataBindings
System.Windows.Forms.IBindableComponent.DataBindings
171 references to DataBindings
DemoConsole (1)
MainForm.cs (1)
427
richTextBox.
DataBindings
.Add(new Binding("Text", bindingSource, "Text", true, DataSourceUpdateMode.OnPropertyChanged));
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (2)
10934
for (int i = 0; i <
DataBindings
.Count; i++)
10936
BindingContext.UpdateBinding(BindingContext,
DataBindings
[i]);
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
379
public new ControlBindingsCollection DataBindings => base.
DataBindings
;
System.Windows.Forms.Design (12)
System\Windows\Forms\Design\ControlDesigner.cs (11)
455
Control.
DataBindings
.CollectionChanged -= _dataBindingsCollectionChanged;
535
Debug.Assert(ctl.
DataBindings
.Count > 0, "we should not be notified if the control has no dataBindings");
536
ctl.
DataBindings
.CollectionChanged -= _dataBindingsCollectionChanged;
537
for (int i = 0; i < ctl.
DataBindings
.Count; i++)
539
Binding binding = ctl.
DataBindings
[i];
547
ctl.
DataBindings
.Remove(binding);
552
if (ctl.
DataBindings
.Count == 0)
562
ctl.
DataBindings
.CollectionChanged += _dataBindingsCollectionChanged;
966
Control.
DataBindings
.CollectionChanged += _dataBindingsCollectionChanged;
1059
if (ctl.
DataBindings
.Count == 0 && _removalNotificationHooked)
1069
else if (ctl.
DataBindings
.Count > 0 && !_removalNotificationHooked)
System\Windows\Forms\Design\DesignBindingValueUIHandler.cs (1)
36
foreach (Binding binding in control.
DataBindings
)
System.Windows.Forms.Tests (145)
System\Windows\Forms\BindingContextTests.cs (1)
996
control.
DataBindings
.Add(binding);
System\Windows\Forms\ButtonBaseTests.cs (24)
4565
Assert.Empty(control.
DataBindings
);
4580
Assert.Empty(control.
DataBindings
);
4591
Assert.Empty(control.
DataBindings
);
4617
Assert.Empty(control.
DataBindings
);
4632
Assert.Empty(control.
DataBindings
);
4643
Assert.Empty(control.
DataBindings
);
4672
Assert.Empty(control.
DataBindings
);
4687
Assert.Empty(control.
DataBindings
);
4698
Assert.Empty(control.
DataBindings
);
4720
Assert.Empty(control.
DataBindings
);
4735
Assert.Empty(control.
DataBindings
);
4746
Assert.Empty(control.
DataBindings
);
4772
Assert.Empty(control.
DataBindings
);
4787
Assert.Empty(control.
DataBindings
);
4798
Assert.Empty(control.
DataBindings
);
4827
Assert.Empty(control.
DataBindings
);
4842
Assert.Empty(control.
DataBindings
);
4853
Assert.Empty(control.
DataBindings
);
4879
Assert.Empty(control.
DataBindings
);
4890
Assert.Empty(control.
DataBindings
);
4920
Assert.Empty(control.
DataBindings
);
4931
Assert.Empty(control.
DataBindings
);
4964
Assert.Empty(control.
DataBindings
);
4975
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\ControlBindingsCollectionTests.cs (2)
103
ControlBindingsCollection collection = control.
DataBindings
;
256
ControlBindingsCollection collection = control.
DataBindings
;
System\Windows\Forms\ControlTests.Methods.cs (47)
994
Assert.Empty(control.
DataBindings
);
1008
Assert.Empty(control.
DataBindings
);
1018
Assert.Empty(control.
DataBindings
);
1045
Assert.Empty(control.
DataBindings
);
1059
Assert.Empty(control.
DataBindings
);
1070
Assert.Empty(control.
DataBindings
);
1099
Assert.Empty(control.
DataBindings
);
1117
Assert.Empty(control.
DataBindings
);
1138
Assert.Empty(control.
DataBindings
);
1165
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
1172
Assert.Empty(control.
DataBindings
);
1186
Assert.Empty(control.
DataBindings
);
1196
Assert.Empty(control.
DataBindings
);
1227
Assert.Empty(control.
DataBindings
);
1241
Assert.Empty(control.
DataBindings
);
1255
Assert.Empty(control.
DataBindings
);
1296
Assert.Empty(control.
DataBindings
);
1310
Assert.Empty(control.
DataBindings
);
1320
Assert.Empty(control.
DataBindings
);
1345
Assert.Empty(control.
DataBindings
);
1355
Assert.Empty(control.
DataBindings
);
1382
Assert.Empty(control.
DataBindings
);
1396
Assert.Empty(control.
DataBindings
);
1407
Assert.Empty(control.
DataBindings
);
1439
Assert.Empty(control.
DataBindings
);
1450
Assert.Empty(control.
DataBindings
);
1479
Assert.Empty(control.
DataBindings
);
1497
Assert.Empty(control.
DataBindings
);
1518
Assert.Empty(control.
DataBindings
);
1565
Assert.Empty(control.
DataBindings
);
1586
Assert.Empty(control.
DataBindings
);
1613
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
1620
Assert.Empty(control.
DataBindings
);
1634
Assert.Empty(control.
DataBindings
);
1644
Assert.Empty(control.
DataBindings
);
1661
control.
DataBindings
.Add(binding);
1672
Assert.Same(binding, Assert.Single(control.
DataBindings
));
1682
Assert.Same(binding, Assert.Single(control.
DataBindings
));
1713
Assert.Empty(control.
DataBindings
);
1727
Assert.Empty(control.
DataBindings
);
1741
Assert.Empty(control.
DataBindings
);
1780
Assert.Empty(control.
DataBindings
);
1794
Assert.Empty(control.
DataBindings
);
6384
Assert.Empty(control.
DataBindings
);
6387
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
6389
Assert.Empty(control.
DataBindings
);
6393
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\ErrorProviderTests.cs (1)
1319
form.
DataBindings
.Add("Text", customDataSource, "Error");
System\Windows\Forms\StatusStripTests.cs (8)
916
Assert.Empty(control.
DataBindings
);
931
Assert.Empty(control.
DataBindings
);
942
Assert.Empty(control.
DataBindings
);
969
Assert.Empty(control.
DataBindings
);
984
Assert.Empty(control.
DataBindings
);
995
Assert.Empty(control.
DataBindings
);
1037
Assert.Empty(control.
DataBindings
);
1048
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\ToolStripDropDownTests.cs (27)
3048
Assert.Empty(control.
DataBindings
);
3064
Assert.Empty(control.
DataBindings
);
3076
Assert.Empty(control.
DataBindings
);
3104
Assert.Empty(control.
DataBindings
);
3121
Assert.Empty(control.
DataBindings
);
3134
Assert.Empty(control.
DataBindings
);
3161
Assert.Empty(control.
DataBindings
);
3177
Assert.Empty(control.
DataBindings
);
3189
Assert.Empty(control.
DataBindings
);
3221
Assert.Empty(control.
DataBindings
);
3241
Assert.Empty(control.
DataBindings
);
3261
Assert.Empty(control.
DataBindings
);
3292
Assert.Empty(control.
DataBindings
);
3308
Assert.Empty(control.
DataBindings
);
3320
Assert.Empty(control.
DataBindings
);
3347
Assert.Empty(control.
DataBindings
);
3358
Assert.Empty(control.
DataBindings
);
3385
Assert.Empty(control.
DataBindings
);
3402
Assert.Empty(control.
DataBindings
);
3415
Assert.Empty(control.
DataBindings
);
3448
Assert.Empty(control.
DataBindings
);
3461
Assert.Empty(control.
DataBindings
);
3494
Assert.Empty(control.
DataBindings
);
3514
Assert.Empty(control.
DataBindings
);
3534
Assert.Empty(control.
DataBindings
);
3583
Assert.Empty(control.
DataBindings
);
3602
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\ToolStripTests.cs (19)
4366
Assert.Empty(control.
DataBindings
);
4382
Assert.Empty(control.
DataBindings
);
4394
Assert.Empty(control.
DataBindings
);
4420
Assert.Empty(control.
DataBindings
);
4436
Assert.Empty(control.
DataBindings
);
4448
Assert.Empty(control.
DataBindings
);
4480
Assert.Empty(control.
DataBindings
);
4500
Assert.Empty(control.
DataBindings
);
4520
Assert.Empty(control.
DataBindings
);
4551
Assert.Empty(control.
DataBindings
);
4567
Assert.Empty(control.
DataBindings
);
4579
Assert.Empty(control.
DataBindings
);
4606
Assert.Empty(control.
DataBindings
);
4617
Assert.Empty(control.
DataBindings
);
4648
Assert.Empty(control.
DataBindings
);
4668
Assert.Empty(control.
DataBindings
);
4688
Assert.Empty(control.
DataBindings
);
4737
Assert.Empty(control.
DataBindings
);
4756
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\WebBrowserTests.cs (16)
2531
Assert.Empty(control.
DataBindings
);
2546
Assert.Empty(control.
DataBindings
);
2557
Assert.Empty(control.
DataBindings
);
2586
Assert.Empty(control.
DataBindings
);
2601
Assert.Empty(control.
DataBindings
);
2612
Assert.Empty(control.
DataBindings
);
2634
Assert.Empty(control.
DataBindings
);
2649
Assert.Empty(control.
DataBindings
);
2660
Assert.Empty(control.
DataBindings
);
2693
Assert.Empty(control.
DataBindings
);
2704
Assert.Empty(control.
DataBindings
);
2733
Assert.Empty(control.
DataBindings
);
2748
Assert.Empty(control.
DataBindings
);
2759
Assert.Empty(control.
DataBindings
);
2785
Assert.Empty(control.
DataBindings
);
2796
Assert.Empty(control.
DataBindings
);
TestPassApp (10)
DataBindingExample.cs (10)
51
textBox1.
DataBindings
.Add("Text", stu, "StudentNumber");
52
domainUpDown1.
DataBindings
.Add("Text", stu, "LuckyNumber");
53
numericUpDown1.
DataBindings
.Add("Text", stu, "Count");
54
label1.
DataBindings
.Add("Text", stu, "Name");
55
button1.
DataBindings
.Add("Text", stu, "Sex");
56
maskedTextBox1.
DataBindings
.Add("Text", stu, "PhoneNumber");
57
linkLabel1.
DataBindings
.Add("Text", stu, "HomeNumber");
58
richTextBox1.
DataBindings
.Add("Text", stu, "Hobby");
59
checkBox1.
DataBindings
.Add("Checked", stu, "IsStudent");
60
radioButton1.
DataBindings
.Add("Checked", stu, "IsStudent");