25 references to AppContextSwitches
System.Windows.Forms (25)
System\Windows\Forms\Accessibility\AccessibleObject.cs (4)
3216
=> !
AppContextSwitches
.NoClientNotifications
3235
if (PInvoke.UiaClientsAreListening() && !
AppContextSwitches
.NoClientNotifications)
3247
if (PInvoke.UiaClientsAreListening() && !
AppContextSwitches
.NoClientNotifications)
3267
if (PInvoke.UiaClientsAreListening() && !
AppContextSwitches
.NoClientNotifications)
System\Windows\Forms\Accessibility\Control.ControlAccessibleObject.cs (1)
465
if (HandleInternal.IsNull ||
AppContextSwitches
.NoClientNotifications)
System\Windows\Forms\Application.ThreadContext.cs (2)
501
ThreadContext context =
LocalAppContextSwitches
.EnableMsoComponentManager
610
if (
LocalAppContextSwitches
.DoNotCatchUnhandledExceptions)
System\Windows\Forms\Control.cs (4)
4133
if (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)
89
NewRowIndex + (
AppContextSwitches
.DataGridViewUIAStartRowCountAtZero ? 0 : 1)));
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.DataGridViewCellAccessibleObject.cs (1)
122
private static int RowStartIndex =>
AppContextSwitches
.DataGridViewUIAStartRowCountAtZero ? 0 : 1;
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.DataGridViewRowAccessibleObject.cs (1)
138
private static int RowStartIndex =>
AppContextSwitches
.DataGridViewUIAStartRowCountAtZero ? 0 : 1;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
28
private static readonly HttpClient s_httpClient = !
AppContextSwitches
.ServicePointManagerCheckCrl ? new() :
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
520
if (
AppContextSwitches
.ApplyParentFontToMenus || IsFontSet())
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
54
if (
AppContextSwitches
.ApplyParentFontToMenus)
System\Windows\Forms\Controls\TrackBar\TrackBar.cs (1)
1135
if (!
AppContextSwitches
.TrackBarModernRendering)
System\Windows\Forms\Controls\TreeView\TreeNodeCollection.cs (1)
222
if (!
AppContextSwitches
.TreeNodeCollectionAddRangeRespectsSortOrder || tv is null || !tv.Sorted)
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
2829
Point textLoc = new(
AppContextSwitches
.MoveTreeViewTextLocationOnePixel ? bounds.X : bounds.X - 1, bounds.Y);
System\Windows\Forms\Dialogs\MessageBox.cs (1)
449
if (
AppContextSwitches
.NoClientNotifications)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (1)
1379
if (
AppContextSwitches
.ScaleTopLevelFormMinMaxSizeForDpi)
System\Windows\Forms\Layout\DefaultLayout.cs (3)
346
return
AppContextSwitches
.AnchorLayoutV2 && element is Control;
833
Debug.Assert(
AppContextSwitches
.AnchorLayoutV2, $"AnchorLayoutV2 should be called only when {
AppContextSwitches
.AnchorLayoutV2SwitchName} is enabled.");