Skip to content

Commit 818d7fe

Browse files
authored
Opt-in for dynamic resource optimization (#10115)
1 parent f50104b commit 818d7fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/AppContextDefaultValues.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@ private static void InitializeNetFxSwitchDefaultsForNetCoreRuntime()
7474
LocalAppContext.DefineSwitchDefault(FrameworkAppContextSwitches.KeyboardNavigationFromHyperlinkInItemsControlIsNotRelativeToFocusedElementSwitchName, false);
7575
LocalAppContext.DefineSwitchDefault(FrameworkAppContextSwitches.ItemAutomationPeerKeepsItsItemAliveSwitchName, false);
7676
LocalAppContext.DefineSwitchDefault(FrameworkAppContextSwitches.DisableFluentThemeWindowBackdropSwitchName, false);
77+
LocalAppContext.DefineSwitchDefault(FrameworkAppContextSwitches.DisableDynamicResourceOptimizationSwitchName, true);
7778

78-
// UseAdornerForTextboxSelectionRenderingSwitchName is always true, i.e., disabled by default.
79+
// UseAdornerForTextboxSelectionRenderingSwitchName is always true, i.e., disabled by default.
7980
// Do not initialized this again - this was initialized earlier in PopulateDefaultValuesPartial unconditionally.
8081
// LocalAppContext.DefineSwitchDefault(FrameworkAppContextSwitches.UseAdornerForTextboxSelectionRenderingSwitchName, true);
8182
}

0 commit comments

Comments
 (0)