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)
10825
for (int i = 0; i <
DataBindings
.Count; i++)
10827
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)
991
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)
979
Assert.Empty(control.
DataBindings
);
993
Assert.Empty(control.
DataBindings
);
1003
Assert.Empty(control.
DataBindings
);
1030
Assert.Empty(control.
DataBindings
);
1044
Assert.Empty(control.
DataBindings
);
1055
Assert.Empty(control.
DataBindings
);
1084
Assert.Empty(control.
DataBindings
);
1102
Assert.Empty(control.
DataBindings
);
1123
Assert.Empty(control.
DataBindings
);
1150
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
1157
Assert.Empty(control.
DataBindings
);
1171
Assert.Empty(control.
DataBindings
);
1181
Assert.Empty(control.
DataBindings
);
1212
Assert.Empty(control.
DataBindings
);
1226
Assert.Empty(control.
DataBindings
);
1240
Assert.Empty(control.
DataBindings
);
1281
Assert.Empty(control.
DataBindings
);
1295
Assert.Empty(control.
DataBindings
);
1305
Assert.Empty(control.
DataBindings
);
1330
Assert.Empty(control.
DataBindings
);
1340
Assert.Empty(control.
DataBindings
);
1367
Assert.Empty(control.
DataBindings
);
1381
Assert.Empty(control.
DataBindings
);
1392
Assert.Empty(control.
DataBindings
);
1424
Assert.Empty(control.
DataBindings
);
1435
Assert.Empty(control.
DataBindings
);
1464
Assert.Empty(control.
DataBindings
);
1482
Assert.Empty(control.
DataBindings
);
1503
Assert.Empty(control.
DataBindings
);
1550
Assert.Empty(control.
DataBindings
);
1571
Assert.Empty(control.
DataBindings
);
1598
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
1605
Assert.Empty(control.
DataBindings
);
1619
Assert.Empty(control.
DataBindings
);
1629
Assert.Empty(control.
DataBindings
);
1646
control.
DataBindings
.Add(binding);
1657
Assert.Same(binding, Assert.Single(control.
DataBindings
));
1667
Assert.Same(binding, Assert.Single(control.
DataBindings
));
1698
Assert.Empty(control.
DataBindings
);
1712
Assert.Empty(control.
DataBindings
);
1726
Assert.Empty(control.
DataBindings
);
1765
Assert.Empty(control.
DataBindings
);
1779
Assert.Empty(control.
DataBindings
);
6369
Assert.Empty(control.
DataBindings
);
6372
control.
DataBindings
.Add(new Binding("Text", new object(), "member"));
6374
Assert.Empty(control.
DataBindings
);
6378
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
);