[API Spec] XamlOptionalChanges: opt-in API for breaking perf changes
Merged
SU
4mo ago+564+564+012345678901234567890123456789-0-0-0123456789
Adds the API spec for XamlOptionalChanges, a mechanism for apps to opt into breaking changes (e.g. performance improvements that alter layout trees) before XAML initialization.
Summary
XamlOptionalChanges- static class withEnableChange(),DisableChange(),IsChangeEnabled(),Lock()XamlChangeId- enum identifying individual breaking changes- Changes must be configured before
Application.Start()orWindowsXamlManager.InitializeForCurrentThread() - State auto-locks at XAML initialization; early manual lock via
Lock()
Spec file: specs/XamlOptionalChanges/XamlOptionalChanges-Spec.md