1 type derived from BindingContext
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingContextTests.cs (1)
1044
private class SubBindingContext :
BindingContext
11 instantiations of BindingContext
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (1)
80
s_bindingContext ??= new
BindingContext
();
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
126
private readonly BindingContext _bindingContext =
new
();
System.Windows.Forms.Tests (9)
System\Windows\Forms\BindingContextTests.cs (1)
25
ICollection context = new
BindingContext
();
System\Windows\Forms\ControlTests.Properties.cs (1)
2171
yield return new object[] { new
BindingContext
() };
System\Windows\Forms\DataGridViewTests.cs (4)
2803
BindingContext context =
new
()
2844
BindingContext context =
new
()
4028
BindingContext context1 =
new
()
4032
BindingContext context2 =
new
()
System\Windows\Forms\ListControlTests.cs (1)
137
yield return new object[] { new
BindingContext
() };
System\Windows\Forms\ToolStripDropDownTests.cs (1)
908
yield return new object[] { new
BindingContext
() };
System\Windows\Forms\ToolStripTests.cs (1)
1113
yield return new object[] { new
BindingContext
() };
180 references to BindingContext
System.Windows.Forms (17)
System\Windows\Forms\Control.cs (5)
938
internal
BindingContext
? BindingContextInternal
943
if (Properties.TryGetValue(s_bindingManagerProperty, out
BindingContext
? context))
960
BindingContext
? oldContext = Properties.AddOrRemoveValue(s_bindingManagerProperty, value);
974
public virtual
BindingContext
? BindingContext
10795
BindingContext
.UpdateBinding(BindingContext, DataBindings[i]);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
380
public override
BindingContext
? BindingContext
384
if (Properties.TryGetValue(s_propBindingContext, out
BindingContext
? context))
System\Windows\Forms\DataBinding\BindableComponent.cs (3)
17
private
BindingContext
? _bindingContext;
27
public
BindingContext
? BindingContext
63
BindingContext
.UpdateBinding(BindingContext, DataBindings[i]);
System\Windows\Forms\DataBinding\Binding.cs (1)
222
BindingContext
.UpdateBinding((BindableComponent is not null && IsComponentCreated(BindableComponent) ? BindableComponent.BindingContext : null), this);
System\Windows\Forms\DataBinding\BindingContext.cs (2)
290
private static void CheckPropertyBindingCycles(
BindingContext
newBindingContext, Binding propBinding)
345
public static void UpdateBinding(
BindingContext
? newBindingContext, Binding binding)
System\Windows\Forms\DataBinding\IBindableComponent.cs (1)
12
BindingContext
? BindingContext
System\Windows\Forms\Layout\Containers\ContainerControl.cs (2)
250
public override
BindingContext
? BindingContext
259
BindingContext
? bm = base.BindingContext;
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
216
public override
BindingContext
? BindingContext
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DataGridViewComboBoxColumnDesigner.cs (1)
14
private static
BindingContext
? s_bindingContext;
System\Windows\Forms\Design\DesignBindingPicker.cs (1)
126
private readonly
BindingContext
_bindingContext = new();
System.Windows.Forms.Tests (161)
System\Windows\Forms\BindingContextTests.cs (50)
17
BindingContext
context = [];
35
BindingContext
context = [];
181
BindingContext
context = [];
210
BindingContext
context = [];
395
BindingContext
context = [];
404
BindingContext
context = [];
417
BindingContext
context = [];
431
BindingContext
context = [];
445
BindingContext
context = [];
464
BindingContext
context = [];
477
BindingContext
context = [];
491
BindingContext
context = [];
521
BindingContext
context = [];
572
BindingContext
context = [];
591
BindingContext
context = [];
609
BindingContext
context = [];
628
BindingContext
context = [];
650
BindingContext
context = [];
673
BindingContext
context = [];
692
BindingContext
context = [];
711
BindingContext
context = [];
742
BindingContext
context = [];
750
BindingContext
context = [];
797
BindingContext
context = [];
801
BindingContext
.UpdateBinding(context, binding);
815
BindingContext
context = [];
819
BindingContext
.UpdateBinding(context, binding);
834
BindingContext
context = [];
838
BindingContext
.UpdateBinding(context, binding);
852
BindingContext
context = [];
857
BindingContext
.UpdateBinding(context, binding);
872
BindingContext
context1 = [];
873
BindingContext
context2 = [];
877
BindingContext
.UpdateBinding(context1, binding);
882
BindingContext
.UpdateBinding(context2, binding);
903
BindingContext
context1 = [];
904
BindingContext
context2 = [];
908
BindingContext
.UpdateBinding(context1, binding);
913
BindingContext
.UpdateBinding(context2, binding);
936
BindingContext
context = [];
941
BindingContext
.UpdateBinding(null, binding);
945
BindingContext
.UpdateBinding(context, binding);
949
BindingContext
.UpdateBinding(null, binding);
963
BindingContext
context = [];
967
BindingContext
.UpdateBinding(context, binding);
981
Assert.Throws<ArgumentException>("dataBinding", () =>
BindingContext
.UpdateBinding(context, binding));
988
BindingContext
context = [];
995
BindingContext
.UpdateBinding(context, binding);
1009
Assert.Throws<ArgumentException>("dataBinding", () =>
BindingContext
.UpdateBinding(context, binding));
1016
Assert.Throws<ArgumentNullException>("binding", () =>
BindingContext
.UpdateBinding([], null));
System\Windows\Forms\ContainerControlTests.cs (7)
347
BindingContext
value = [];
380
BindingContext
value1 = [];
391
BindingContext
value2 = [];
397
BindingContext
value3 = [];
585
BindingContext
value1 = [];
596
BindingContext
value2 = [];
602
BindingContext
value3 = [];
System\Windows\Forms\ControlTests.ControlCollection.cs (32)
629
BindingContext
parentContext = [];
630
BindingContext
childContext = [];
639
public void ControlCollection_Add_InvokeWithOverriddenProperties_CallsPropertyHandlers(
BindingContext
parentBindingContext,
BindingContext
bindingContext,
BindingContext
expectedBindingContext)
779
BindingContext
parentContext = [];
780
BindingContext
childContext = [];
789
public void ControlCollection_Add_InvokeWithOverriddenPropertiesWithHandle_CallsPropertyHandlers(
BindingContext
parentBindingContext,
BindingContext
bindingContext,
BindingContext
expectedBindingContext, int expectedBindingContextChangedCallCount)
942
public void ControlCollection_Add_InvokeWithOverriddenPropertiesAxHost_DoesNotCallPropertyHandlers(
BindingContext
parentBindingContext,
BindingContext
bindingContext,
BindingContext
expectedBindingContext)
1015
public void ControlCollection_Add_InvokeWithOverriddenPropertiesAxHostWithHandle_CallSPropertyHandlers(
BindingContext
parentBindingContext,
BindingContext
bindingContext,
BindingContext
expectedBindingContext, int expectedBindingContextChangedCallCount)
2329
BindingContext
parentContext = [];
2330
BindingContext
childContext = [];
2339
public void ControlCollection_Remove_InvokeWithOverriddenProperties_CallsPropertyHandlers(
BindingContext
parentBindingContext,
BindingContext
bindingContext,
BindingContext
expectedBindingContext)
2473
BindingContext
parentContext = [];
2474
BindingContext
childContext = [];
2483
public void ControlCollection_Remove_InvokeWithOverriddenPropertiesWithHandle_CallsPropertyHandlers(
BindingContext
parentBindingContext,
BindingContext
bindingContext,
BindingContext
expectedBindingContext, int expectedBindingContextChangedCallCount)
2615
public void ControlCollection_Remove_InvokeWithOverriddenPropertiesAxHost_DoesNotCallPropertyHandlers(
BindingContext
parentBindingContext,
BindingContext
bindingContext,
BindingContext
expectedBindingContext)
2679
public void ControlCollection_Remove_InvokeWithOverriddenPropertiesAxHostWithHandle_CallSPropertyHandlers(
BindingContext
parentBindingContext,
BindingContext
bindingContext,
BindingContext
expectedBindingContext, int expectedBindingContextChangedCallCount)
System\Windows\Forms\ControlTests.Handlers.cs (3)
702
BindingContext
childContext1 = [];
703
BindingContext
childContext2 = [];
4330
BindingContext
context = [];
System\Windows\Forms\ControlTests.Properties.cs (12)
2141
BindingContext
bindingContext = [];
2156
BindingContext
bindingContext = [];
2176
public void Control_BindingContext_Set_GetReturnsExpected(
BindingContext
value)
2193
public void Control_BindingContext_SetWithNonNullBindingContext_GetReturnsExpected(
BindingContext
value)
2224
BindingContext
context1 = [];
2235
BindingContext
context2 = [];
2287
BindingContext
context1 = [];
2306
BindingContext
context2 = [];
2340
BindingContext
childContext1 = [];
2341
BindingContext
childContext2 = [];
2380
BindingContext
context1 = [];
2399
BindingContext
context2 = [];
System\Windows\Forms\DataGridViewTests.cs (4)
2803
BindingContext
context = new()
2844
BindingContext
context = new()
4028
BindingContext
context1 = new()
4032
BindingContext
context2 = new()
System\Windows\Forms\ErrorProviderTests.cs (1)
1385
public override
BindingContext
BindingContext => null;
System\Windows\Forms\ListBoxTests.cs (3)
2442
BindingContext
bindingContext = [];
2924
BindingContext
bindingContext = [];
5818
BindingContext
bindingContext = [];
System\Windows\Forms\ListControlTests.cs (36)
142
public void ListControl_BindingContext_Set_GetReturnsExpected(
BindingContext
value)
165
public void ListControl_BindingContext_SetWithNonNullBindingContext_GetReturnsExpected(
BindingContext
value)
191
BindingContext
value = [];
217
BindingContext
value = [];
244
BindingContext
originalValue = [];
245
BindingContext
value = [];
272
BindingContext
originalValue = [];
273
BindingContext
value = [];
311
BindingContext
context1 = [];
322
BindingContext
context2 = [];
342
BindingContext
context = [];
357
BindingContext
context = [];
373
BindingContext
context = [];
418
BindingContext
context = [];
449
BindingContext
context = [];
491
BindingContext
context = [];
518
BindingContext
context = [];
857
BindingContext
context = [];
893
BindingContext
context = [];
929
BindingContext
context = [];
953
BindingContext
context = [];
1140
BindingContext
context = [];
1164
BindingContext
context = [];
1193
BindingContext
context = [];
1220
BindingContext
context = [];
1732
BindingContext
context = [];
1761
BindingContext
context = [];
1788
BindingContext
context = [];
1808
BindingContext
context = [];
1836
BindingContext
context = [];
1916
BindingContext
context = [];
1950
BindingContext
context = [];
1974
BindingContext
context = [];
2019
BindingContext
context = [];
2058
BindingContext
context = [];
2077
BindingContext
context = [];
System\Windows\Forms\PropertyManagerTests.cs (4)
26
BindingContext
context = [];
36
BindingContext
context = [];
393
BindingContext
context = [];
403
BindingContext
context = [];
System\Windows\Forms\ToolStripDropDownTests.cs (3)
913
public void ToolStripDropDown_BindingContext_Set_GetReturnsExpected(
BindingContext
value)
942
BindingContext
context1 = [];
953
BindingContext
context2 = [];
System\Windows\Forms\ToolStripTests.cs (6)
1083
BindingContext
bindingContext = [];
1098
BindingContext
bindingContext = [];
1118
public void ToolStrip_BindingContext_Set_GetReturnsExpected(
BindingContext
value)
1135
public void ToolStrip_BindingContext_SetWithNonNullBindingContext_GetReturnsExpected(
BindingContext
value)
1166
BindingContext
context1 = [];
1177
BindingContext
context2 = [];