36 references to LocalAppContextSwitches
System.Windows.Forms (29)
GlobalUsings.cs (1)
8
global using AppContextSwitches = System.Windows.Forms.Primitives.
LocalAppContextSwitches
;
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 (3)
8
using LocalAppContextSwitches = System.Windows.Forms.Primitives.
LocalAppContextSwitches
;
483
ThreadContext context =
LocalAppContextSwitches
.EnableMsoComponentManager
598
if (
LocalAppContextSwitches
.DoNotCatchUnhandledExceptions)
System\Windows\Forms\Control.cs (4)
4208
if (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)
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 (2)
1136
if (!
AppContextSwitches
.TrackBarModernRendering)
1160
/// If user opts out of <see cref="
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)
1373
if (
AppContextSwitches
.ScaleTopLevelFormMinMaxSizeForDpi)
System\Windows\Forms\Layout\DefaultLayout.cs (4)
346
return
AppContextSwitches
.AnchorLayoutV2 && element is Control;
824
/// Developers may opt-out of this new behavior using switch <see cref="
AppContextSwitches
.AnchorLayoutV2"/>.
833
Debug.Assert(
AppContextSwitches
.AnchorLayoutV2, $"AnchorLayoutV2 should be called only when {
AppContextSwitches
.AnchorLayoutV2SwitchName} is enabled.");
System.Windows.Forms.TestUtilities (7)
AnchorLayoutV2Scope.cs (1)
37
typeof(
LocalAppContextSwitches
).TestAccessor()
ApplyParentFontToMenusScope.cs (1)
37
typeof(
LocalAppContextSwitches
).TestAccessor()
DataGridViewUIAStartRowCountAtZeroScope.cs (1)
36
typeof(
LocalAppContextSwitches
).TestAccessor()
NoClientNotificationsScope.cs (1)
37
typeof(
LocalAppContextSwitches
).TestAccessor()
ScaleTopLevelFormMinMaxSizeForDpiScope.cs (1)
37
typeof(
LocalAppContextSwitches
).TestAccessor()
ServicePointManagerCheckCrlScope.cs (1)
37
typeof(
LocalAppContextSwitches
).TestAccessor()
TreeNodeCollectionAddRangeRespectsSortOrderScope.cs (1)
37
typeof(
LocalAppContextSwitches
).TestAccessor()