25 references to AppContextSwitches
System.Windows.Forms (25)
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 (2)
501ThreadContext context = LocalAppContextSwitches.EnableMsoComponentManager 610if (LocalAppContextSwitches.DoNotCatchUnhandledExceptions)
System\Windows\Forms\Control.cs (4)
4133if (IsHandleCreated && AppContextSwitches.NoClientNotifications) 4223_forceAnchorCalculations = AppContextSwitches.AnchorLayoutV2; // Parent has changed. AnchorsInfo should be recalculated. 9971_forceAnchorCalculations = AppContextSwitches.AnchorLayoutV2; 10019_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 (1)
1135if (!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)
1379if (AppContextSwitches.ScaleTopLevelFormMinMaxSizeForDpi)
System\Windows\Forms\Layout\DefaultLayout.cs (3)
346return AppContextSwitches.AnchorLayoutV2 && element is Control; 833Debug.Assert(AppContextSwitches.AnchorLayoutV2, $"AnchorLayoutV2 should be called only when {AppContextSwitches.AnchorLayoutV2SwitchName} is enabled.");