1 type derived from BindingContext
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingContextTests.cs (1)
1043
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)
939
internal
BindingContext
? BindingContextInternal
944
if (Properties.TryGetValue(s_bindingManagerProperty, out
BindingContext
? context))
961
BindingContext
? oldContext = Properties.AddOrRemoveValue(s_bindingManagerProperty, value);
975
public virtual
BindingContext
? BindingContext
10828
BindingContext
.UpdateBinding(BindingContext, DataBindings[i]);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
379
public override
BindingContext
? BindingContext
383
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 = [];
796
BindingContext
context = [];
800
BindingContext
.UpdateBinding(context, binding);
814
BindingContext
context = [];
818
BindingContext
.UpdateBinding(context, binding);
833
BindingContext
context = [];
837
BindingContext
.UpdateBinding(context, binding);
851
BindingContext
context = [];
856
BindingContext
.UpdateBinding(context, binding);
871
BindingContext
context1 = [];
872
BindingContext
context2 = [];
876
BindingContext
.UpdateBinding(context1, binding);
881
BindingContext
.UpdateBinding(context2, binding);
902
BindingContext
context1 = [];
903
BindingContext
context2 = [];
907
BindingContext
.UpdateBinding(context1, binding);
912
BindingContext
.UpdateBinding(context2, binding);
935
BindingContext
context = [];
940
BindingContext
.UpdateBinding(null, binding);
944
BindingContext
.UpdateBinding(context, binding);
948
BindingContext
.UpdateBinding(null, binding);
962
BindingContext
context = [];
966
BindingContext
.UpdateBinding(context, binding);
980
Assert.Throws<ArgumentException>("dataBinding", () =>
BindingContext
.UpdateBinding(context, binding));
987
BindingContext
context = [];
994
BindingContext
.UpdateBinding(context, binding);
1008
Assert.Throws<ArgumentException>("dataBinding", () =>
BindingContext
.UpdateBinding(context, binding));
1015
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 = [];
35
BindingContext
context = [];
391
BindingContext
context = [];
401
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 = [];