1 type derived from BindingContext
System.Windows.Forms.Tests (1)
System\Windows\Forms\BindingContextTests.cs (1)
1044private 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)
938internal BindingContext? BindingContextInternal 943if (Properties.TryGetValue(s_bindingManagerProperty, out BindingContext? context)) 960BindingContext? oldContext = Properties.AddOrRemoveValue(s_bindingManagerProperty, value); 974public virtual BindingContext? BindingContext 10795BindingContext.UpdateBinding(BindingContext, DataBindings[i]);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
380public override BindingContext? BindingContext 384if (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 = []; 797BindingContext context = []; 801BindingContext.UpdateBinding(context, binding); 815BindingContext context = []; 819BindingContext.UpdateBinding(context, binding); 834BindingContext context = []; 838BindingContext.UpdateBinding(context, binding); 852BindingContext context = []; 857BindingContext.UpdateBinding(context, binding); 872BindingContext context1 = []; 873BindingContext context2 = []; 877BindingContext.UpdateBinding(context1, binding); 882BindingContext.UpdateBinding(context2, binding); 903BindingContext context1 = []; 904BindingContext context2 = []; 908BindingContext.UpdateBinding(context1, binding); 913BindingContext.UpdateBinding(context2, binding); 936BindingContext context = []; 941BindingContext.UpdateBinding(null, binding); 945BindingContext.UpdateBinding(context, binding); 949BindingContext.UpdateBinding(null, binding); 963BindingContext context = []; 967BindingContext.UpdateBinding(context, binding); 981Assert.Throws<ArgumentException>("dataBinding", () => BindingContext.UpdateBinding(context, binding)); 988BindingContext context = []; 995BindingContext.UpdateBinding(context, binding); 1009Assert.Throws<ArgumentException>("dataBinding", () => BindingContext.UpdateBinding(context, binding)); 1016Assert.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 = []; 36BindingContext context = []; 393BindingContext context = []; 403BindingContext 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 = [];