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