42 references to LocalAppContextSwitches
System.Windows.Forms (42)
winforms\Managed\System\WinForms\AppContextDefaultValues.Defaults.cs (8)
22
LocalAppContext.DefineSwitchDefault(
LocalAppContextSwitches
.DontSupportReentrantFilterMessageSwitchName, true);
23
LocalAppContext.DefineSwitchDefault(
LocalAppContextSwitches
.DoNotSupportSelectAllShortcutInMultilineTextBoxSwitchName, true);
26
LocalAppContext.DefineSwitchDefault(
LocalAppContextSwitches
.DoNotLoadLatestRichEditControlSwitchName, true);
32
LocalAppContext.DefineSwitchDefault(
LocalAppContextSwitches
.UseLegacyContextMenuStripSourceControlValueSwitchName, true);
33
LocalAppContext.DefineSwitchDefault(
LocalAppContextSwitches
.DomainUpDownUseLegacyScrollingSwitchName, true);
34
LocalAppContext.DefineSwitchDefault(
LocalAppContextSwitches
.AllowUpdateChildControlIndexForTabControlsSwitchName, true);
39
LocalAppContext.DefineSwitchDefault(
LocalAppContextSwitches
.UseLegacyImagesSwitchName, true);
40
LocalAppContext.DefineSwitchDefault(
LocalAppContextSwitches
.EnableVisualStyleValidationSwitchName, true);
winforms\Managed\System\WinForms\Application.cs (2)
772
&&
LocalAppContextSwitches
.EnableVisualStyleValidation) {
3588
if (messageFilters != null && !GetState(STATE_FILTERSNAPSHOTVALID) && (
LocalAppContextSwitches
.DontSupportReentrantFilterMessage || inProcessFilters == 0)) {
winforms\Managed\System\WinForms\ComboBox.cs (1)
1755
if (!DesignMode && (childEdit != null && m.HWnd == childEdit.Handle) && !
LocalAppContextSwitches
.EnableLegacyIMEFocusInComboBox) {
winforms\Managed\System\WinForms\Control.cs (1)
12635
if (!
LocalAppContextSwitches
.AllowUpdateChildControlIndexForTabControls) {
winforms\Managed\System\WinForms\Control.Ime.cs (2)
679
if(
LocalAppContextSwitches
.EnableLegacyChineseIMEIndicator && ImeModeConversion.InputLanguageTable == ImeModeConversion.ChineseTable ) {
758
if (
LocalAppContextSwitches
.EnableLegacyChineseIMEIndicator && (inputLanguageTable == ImeModeConversion.ChineseTable) && !lastLanguageChinese) {
winforms\Managed\System\WinForms\DataObject.cs (1)
1483
else if (!
LocalAppContextSwitches
.EnableLegacyDangerousClipboardDeserializationMode) {
winforms\Managed\System\WinForms\DomainUpDown.cs (3)
305
if (!
LocalAppContextSwitches
.UseLegacyDomainUpDownControlScrolling) {
553
if (domainIndex == -1 &&
LocalAppContextSwitches
.UseLegacyDomainUpDownControlScrolling) {
567
if(!
LocalAppContextSwitches
.UseLegacyDomainUpDownControlScrolling) {
winforms\Managed\System\WinForms\LocalAppContextSwitches.cs (11)
38
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.DontSupportReentrantFilterMessageSwitchName, ref _dontSupportReentrantFilterMessage);
45
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.DoNotSupportSelectAllShortcutInMultilineTextBoxSwitchName, ref _doNotSupportSelectAllShortcutInMultilineTextBox);
52
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.DoNotLoadLatestRichEditControlSwitchName, ref _doNotLoadLatestRichEditControl);
59
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.UseLegacyContextMenuStripSourceControlValueSwitchName, ref _useLegacyContextMenuStripSourceControlValue);
66
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.DomainUpDownUseLegacyScrollingSwitchName, ref _useLegacyDomainUpDownScrolling);
73
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.AllowUpdateChildControlIndexForTabControlsSwitchName, ref _allowUpdateChildControlIndexForTabControls);
80
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.UseLegacyImagesSwitchName, ref _useLegacyImages);
87
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.EnableVisualStyleValidationSwitchName, ref _enableVisualStyleValidation);
105
LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.EnableLegacyDangerousClipboardDeserializationModeSwitchName, ref _enableLegacyDangerousClipboardDeserializationMode);
119
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.EnableLegacyChineseIMEIndicatorSwitchName, ref _enableLegacyChineseIMEIndicator);
130
return LocalAppContext.GetCachedSwitchValue(
LocalAppContextSwitches
.EnableLegacyIMEFocusInComboBoxSwitchName, ref _enableLegacyIMEFocusInComboBox);
winforms\Managed\System\WinForms\RichTextBox.cs (3)
362
string richEditControlDllVersion =
LocalAppContextSwitches
.DoNotLoadLatestRichEditControl ? RichTextBoxConstants.DLL_RICHEDIT : RichTextBoxConstants.DLL_RICHEDIT_41;
399
cp.ClassName =
LocalAppContextSwitches
.DoNotLoadLatestRichEditControl ? RichTextBoxConstants.WC_RICHEDITA : RichTextBoxConstants.WC_RICHEDITA_41;
402
cp.ClassName =
LocalAppContextSwitches
.DoNotLoadLatestRichEditControl ? RichTextBoxConstants.WC_RICHEDITW : RichTextBoxConstants.WC_RICHEDITW_41;
winforms\Managed\System\WinForms\TextBox.cs (1)
714
if (!returnValue && this.Multiline && !
LocalAppContextSwitches
.DoNotSupportSelectAllShortcutInMultilineTextBox
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1295
if (!
LocalAppContextSwitches
.UseLegacyContextMenuStripSourceControlValue &&
2185
if (!
LocalAppContextSwitches
.UseLegacyContextMenuStripSourceControlValue) {
winforms\Managed\System\WinForms\TrustManagerMoreInformation.cs (3)
362
if (!
LocalAppContextSwitches
.UseLegacyImages)
373
if (!
LocalAppContextSwitches
.UseLegacyImages)
385
if (!
LocalAppContextSwitches
.UseLegacyImages)
winforms\Managed\System\WinForms\TrustManagerPromptUI.cs (4)
405
if (!
LocalAppContextSwitches
.UseLegacyImages)
650
if (!
LocalAppContextSwitches
.UseLegacyImages)
662
if (!
LocalAppContextSwitches
.UseLegacyImages)
675
if (!
LocalAppContextSwitches
.UseLegacyImages)