36 references to LocalAppContextSwitches
System.Windows.Forms (29)
GlobalUsings.cs (1)
8global using AppContextSwitches = System.Windows.Forms.Primitives.LocalAppContextSwitches;
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
3216=> !AppContextSwitches.NoClientNotifications 3235if (PInvoke.UiaClientsAreListening() && !AppContextSwitches.NoClientNotifications) 3247if (PInvoke.UiaClientsAreListening() && !AppContextSwitches.NoClientNotifications) 3267if (PInvoke.UiaClientsAreListening() && !AppContextSwitches.NoClientNotifications)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
465if (HandleInternal.IsNull || AppContextSwitches.NoClientNotifications)
System\Windows\Forms\Application.ThreadContext.cs (3)
8using LocalAppContextSwitches = System.Windows.Forms.Primitives.LocalAppContextSwitches; 483ThreadContext context = LocalAppContextSwitches.EnableMsoComponentManager 598if (LocalAppContextSwitches.DoNotCatchUnhandledExceptions)
System\Windows\Forms\Control.cs (4)
4208if (IsHandleCreated && AppContextSwitches.NoClientNotifications) 4298_forceAnchorCalculations = AppContextSwitches.AnchorLayoutV2; // Parent has changed. AnchorsInfo should be recalculated. 10052_forceAnchorCalculations = AppContextSwitches.AnchorLayoutV2; 10100_forceAnchorCalculations = AppContextSwitches.AnchorLayoutV2;
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
89NewRowIndex + (AppContextSwitches.DataGridViewUIAStartRowCountAtZero ? 0 : 1)));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
122private static int RowStartIndex => AppContextSwitches.DataGridViewUIAStartRowCountAtZero ? 0 : 1;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
138private static int RowStartIndex => AppContextSwitches.DataGridViewUIAStartRowCountAtZero ? 0 : 1;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
28private static readonly HttpClient s_httpClient = !AppContextSwitches.ServicePointManagerCheckCrl ? new() :
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
520if (AppContextSwitches.ApplyParentFontToMenus || IsFontSet())
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
54if (AppContextSwitches.ApplyParentFontToMenus)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (2)
1136if (!AppContextSwitches.TrackBarModernRendering) 1160/// If user opts out of <see cref="AppContextSwitches.TrackBarModernRendering"/>
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
222if (!AppContextSwitches.TreeNodeCollectionAddRangeRespectsSortOrder || tv is null || !tv.Sorted)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2829Point textLoc = new(AppContextSwitches.MoveTreeViewTextLocationOnePixel ? bounds.X : bounds.X - 1, bounds.Y);
System\Windows\Forms\Dialogs\MessageBox.cs (1)
449if (AppContextSwitches.NoClientNotifications)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1373if (AppContextSwitches.ScaleTopLevelFormMinMaxSizeForDpi)
System\Windows\Forms\Layout\DefaultLayout.cs (4)
346return AppContextSwitches.AnchorLayoutV2 && element is Control; 824/// Developers may opt-out of this new behavior using switch <see cref="AppContextSwitches.AnchorLayoutV2"/>. 833Debug.Assert(AppContextSwitches.AnchorLayoutV2, $"AnchorLayoutV2 should be called only when {AppContextSwitches.AnchorLayoutV2SwitchName} is enabled.");
System.Windows.Forms.TestUtilities (7)
AnchorLayoutV2Scope.cs (1)
37typeof(LocalAppContextSwitches).TestAccessor()
ApplyParentFontToMenusScope.cs (1)
37typeof(LocalAppContextSwitches).TestAccessor()
DataGridViewUIAStartRowCountAtZeroScope.cs (1)
36typeof(LocalAppContextSwitches).TestAccessor()
NoClientNotificationsScope.cs (1)
37typeof(LocalAppContextSwitches).TestAccessor()
ScaleTopLevelFormMinMaxSizeForDpiScope.cs (1)
37typeof(LocalAppContextSwitches).TestAccessor()
ServicePointManagerCheckCrlScope.cs (1)
37typeof(LocalAppContextSwitches).TestAccessor()
TreeNodeCollectionAddRangeRespectsSortOrderScope.cs (1)
37typeof(LocalAppContextSwitches).TestAccessor()