Implemented interface member:
property
DataBindings
System.Windows.Forms.IBindableComponent.DataBindings
171 references to DataBindings
Accessibility_Core_App (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");
DesignSurface (1)
MainForm.cs (1)
367
richTextBox.
DataBindings
.Add(new Binding("Text", bindingSource, "Text", true, DataSourceUpdateMode.OnPropertyChanged));
System.Windows.Forms (3)
System\Windows\Forms\Control.cs (2)
10793
for (int i = 0; i <
DataBindings
.Count; i++)
10795
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)
992
control.
DataBindings
.Add(binding);
System\Windows\Forms\ButtonBaseTests.cs (24)
4563
Assert.Empty(control.
DataBindings
);
4578
Assert.Empty(control.
DataBindings
);
4589
Assert.Empty(control.
DataBindings
);
4615
Assert.Empty(control.
DataBindings
);
4630
Assert.Empty(control.
DataBindings
);
4641
Assert.Empty(control.
DataBindings
);
4670
Assert.Empty(control.
DataBindings
);
4685
Assert.Empty(control.
DataBindings
);
4696
Assert.Empty(control.
DataBindings
);
4718
Assert.Empty(control.
DataBindings
);
4733
Assert.Empty(control.
DataBindings
);
4744
Assert.Empty(control.
DataBindings
);
4770
Assert.Empty(control.
DataBindings
);
4785
Assert.Empty(control.
DataBindings
);
4796
Assert.Empty(control.
DataBindings
);
4825
Assert.Empty(control.
DataBindings
);
4840
Assert.Empty(control.
DataBindings
);
4851
Assert.Empty(control.
DataBindings
);
4877
Assert.Empty(control.
DataBindings
);
4888
Assert.Empty(control.
DataBindings
);
4918
Assert.Empty(control.
DataBindings
);
4929
Assert.Empty(control.
DataBindings
);
4962
Assert.Empty(control.
DataBindings
);
4973
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\ControlBindingsCollectionTests.cs (2)
101
ControlBindingsCollection collection = control.
DataBindings
;
254
ControlBindingsCollection collection = control.
DataBindings
;
System\Windows\Forms\ControlTests.Methods.cs (47)
980
Assert.Empty(control.
DataBindings
);
994
Assert.Empty(control.
DataBindings
);
1004
Assert.Empty(control.
DataBindings
);
1031
Assert.Empty(control.
DataBindings
);
1045
Assert.Empty(control.
DataBindings
);
1056
Assert.Empty(control.
DataBindings
);
1085
Assert.Empty(control.
DataBindings
);
1103
Assert.Empty(control.
DataBindings
);
1124
Assert.Empty(control.
DataBindings
);
1151
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
1158
Assert.Empty(control.
DataBindings
);
1172
Assert.Empty(control.
DataBindings
);
1182
Assert.Empty(control.
DataBindings
);
1213
Assert.Empty(control.
DataBindings
);
1227
Assert.Empty(control.
DataBindings
);
1241
Assert.Empty(control.
DataBindings
);
1282
Assert.Empty(control.
DataBindings
);
1296
Assert.Empty(control.
DataBindings
);
1306
Assert.Empty(control.
DataBindings
);
1331
Assert.Empty(control.
DataBindings
);
1341
Assert.Empty(control.
DataBindings
);
1368
Assert.Empty(control.
DataBindings
);
1382
Assert.Empty(control.
DataBindings
);
1393
Assert.Empty(control.
DataBindings
);
1425
Assert.Empty(control.
DataBindings
);
1436
Assert.Empty(control.
DataBindings
);
1465
Assert.Empty(control.
DataBindings
);
1483
Assert.Empty(control.
DataBindings
);
1504
Assert.Empty(control.
DataBindings
);
1551
Assert.Empty(control.
DataBindings
);
1572
Assert.Empty(control.
DataBindings
);
1599
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
1606
Assert.Empty(control.
DataBindings
);
1620
Assert.Empty(control.
DataBindings
);
1630
Assert.Empty(control.
DataBindings
);
1647
control.
DataBindings
.Add(binding);
1658
Assert.Same(binding, Assert.Single(control.
DataBindings
));
1668
Assert.Same(binding, Assert.Single(control.
DataBindings
));
1699
Assert.Empty(control.
DataBindings
);
1713
Assert.Empty(control.
DataBindings
);
1727
Assert.Empty(control.
DataBindings
);
1766
Assert.Empty(control.
DataBindings
);
1780
Assert.Empty(control.
DataBindings
);
6402
Assert.Empty(control.
DataBindings
);
6405
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
6407
Assert.Empty(control.
DataBindings
);
6411
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\ErrorProviderTests.cs (1)
1317
form.
DataBindings
.Add("Text", customDataSource, "Error");
System\Windows\Forms\StatusStripTests.cs (8)
914
Assert.Empty(control.
DataBindings
);
929
Assert.Empty(control.
DataBindings
);
940
Assert.Empty(control.
DataBindings
);
967
Assert.Empty(control.
DataBindings
);
982
Assert.Empty(control.
DataBindings
);
993
Assert.Empty(control.
DataBindings
);
1035
Assert.Empty(control.
DataBindings
);
1046
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\ToolStripDropDownTests.cs (27)
3046
Assert.Empty(control.
DataBindings
);
3062
Assert.Empty(control.
DataBindings
);
3074
Assert.Empty(control.
DataBindings
);
3102
Assert.Empty(control.
DataBindings
);
3119
Assert.Empty(control.
DataBindings
);
3132
Assert.Empty(control.
DataBindings
);
3159
Assert.Empty(control.
DataBindings
);
3175
Assert.Empty(control.
DataBindings
);
3187
Assert.Empty(control.
DataBindings
);
3219
Assert.Empty(control.
DataBindings
);
3239
Assert.Empty(control.
DataBindings
);
3259
Assert.Empty(control.
DataBindings
);
3290
Assert.Empty(control.
DataBindings
);
3306
Assert.Empty(control.
DataBindings
);
3318
Assert.Empty(control.
DataBindings
);
3345
Assert.Empty(control.
DataBindings
);
3356
Assert.Empty(control.
DataBindings
);
3383
Assert.Empty(control.
DataBindings
);
3400
Assert.Empty(control.
DataBindings
);
3413
Assert.Empty(control.
DataBindings
);
3446
Assert.Empty(control.
DataBindings
);
3459
Assert.Empty(control.
DataBindings
);
3492
Assert.Empty(control.
DataBindings
);
3512
Assert.Empty(control.
DataBindings
);
3532
Assert.Empty(control.
DataBindings
);
3581
Assert.Empty(control.
DataBindings
);
3600
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\ToolStripTests.cs (19)
4364
Assert.Empty(control.
DataBindings
);
4380
Assert.Empty(control.
DataBindings
);
4392
Assert.Empty(control.
DataBindings
);
4418
Assert.Empty(control.
DataBindings
);
4434
Assert.Empty(control.
DataBindings
);
4446
Assert.Empty(control.
DataBindings
);
4478
Assert.Empty(control.
DataBindings
);
4498
Assert.Empty(control.
DataBindings
);
4518
Assert.Empty(control.
DataBindings
);
4549
Assert.Empty(control.
DataBindings
);
4565
Assert.Empty(control.
DataBindings
);
4577
Assert.Empty(control.
DataBindings
);
4604
Assert.Empty(control.
DataBindings
);
4615
Assert.Empty(control.
DataBindings
);
4646
Assert.Empty(control.
DataBindings
);
4666
Assert.Empty(control.
DataBindings
);
4686
Assert.Empty(control.
DataBindings
);
4735
Assert.Empty(control.
DataBindings
);
4754
Assert.Empty(control.
DataBindings
);
System\Windows\Forms\WebBrowserTests.cs (16)
2529
Assert.Empty(control.
DataBindings
);
2544
Assert.Empty(control.
DataBindings
);
2555
Assert.Empty(control.
DataBindings
);
2584
Assert.Empty(control.
DataBindings
);
2599
Assert.Empty(control.
DataBindings
);
2610
Assert.Empty(control.
DataBindings
);
2632
Assert.Empty(control.
DataBindings
);
2647
Assert.Empty(control.
DataBindings
);
2658
Assert.Empty(control.
DataBindings
);
2691
Assert.Empty(control.
DataBindings
);
2702
Assert.Empty(control.
DataBindings
);
2731
Assert.Empty(control.
DataBindings
);
2746
Assert.Empty(control.
DataBindings
);
2757
Assert.Empty(control.
DataBindings
);
2783
Assert.Empty(control.
DataBindings
);
2794
Assert.Empty(control.
DataBindings
);