Implemented interface member:
property
DataBindings
System.Windows.Forms.IBindableComponent.DataBindings
171 references to DataBindings
DesignSurface (1)
MainForm.cs (1)
375
richTextBox.
DataBindings
.Add(new Binding("Text", bindingSource, "Text", true, DataSourceUpdateMode.OnPropertyChanged));
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (2)
10824
for (int i = 0; i <
DataBindings
.Count; i++)
10826
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;
951
Control.
DataBindings
.CollectionChanged += _dataBindingsCollectionChanged;
1044
if (ctl.
DataBindings
.Count == 0 && _removalNotificationHooked)
1054
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)
993
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)
981
Assert.Empty(control.
DataBindings
);
995
Assert.Empty(control.
DataBindings
);
1005
Assert.Empty(control.
DataBindings
);
1032
Assert.Empty(control.
DataBindings
);
1046
Assert.Empty(control.
DataBindings
);
1057
Assert.Empty(control.
DataBindings
);
1086
Assert.Empty(control.
DataBindings
);
1104
Assert.Empty(control.
DataBindings
);
1125
Assert.Empty(control.
DataBindings
);
1152
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
1159
Assert.Empty(control.
DataBindings
);
1173
Assert.Empty(control.
DataBindings
);
1183
Assert.Empty(control.
DataBindings
);
1214
Assert.Empty(control.
DataBindings
);
1228
Assert.Empty(control.
DataBindings
);
1242
Assert.Empty(control.
DataBindings
);
1283
Assert.Empty(control.
DataBindings
);
1297
Assert.Empty(control.
DataBindings
);
1307
Assert.Empty(control.
DataBindings
);
1332
Assert.Empty(control.
DataBindings
);
1342
Assert.Empty(control.
DataBindings
);
1369
Assert.Empty(control.
DataBindings
);
1383
Assert.Empty(control.
DataBindings
);
1394
Assert.Empty(control.
DataBindings
);
1426
Assert.Empty(control.
DataBindings
);
1437
Assert.Empty(control.
DataBindings
);
1466
Assert.Empty(control.
DataBindings
);
1484
Assert.Empty(control.
DataBindings
);
1505
Assert.Empty(control.
DataBindings
);
1552
Assert.Empty(control.
DataBindings
);
1573
Assert.Empty(control.
DataBindings
);
1600
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
1607
Assert.Empty(control.
DataBindings
);
1621
Assert.Empty(control.
DataBindings
);
1631
Assert.Empty(control.
DataBindings
);
1648
control.
DataBindings
.Add(binding);
1659
Assert.Same(binding, Assert.Single(control.
DataBindings
));
1669
Assert.Same(binding, Assert.Single(control.
DataBindings
));
1700
Assert.Empty(control.
DataBindings
);
1714
Assert.Empty(control.
DataBindings
);
1728
Assert.Empty(control.
DataBindings
);
1767
Assert.Empty(control.
DataBindings
);
1781
Assert.Empty(control.
DataBindings
);
6371
Assert.Empty(control.
DataBindings
);
6374
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
6376
Assert.Empty(control.
DataBindings
);
6380
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");