[API Spec] XamlOptionalChanges: opt-in API for breaking perf changes

Merged
SU
4mo ago
+564-0

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 with EnableChange(), DisableChange(), IsChangeEnabled(), Lock()
  • XamlChangeId - enum identifying individual breaking changes
  • Changes must be configured before Application.Start() or WindowsXamlManager.InitializeForCurrentThread()
  • State auto-locks at XAML initialization; early manual lock via Lock()

Spec file: specs/XamlOptionalChanges/XamlOptionalChanges-Spec.md