Files
AtomUI/src/AtomUI.Desktop.Controls/Switch
chinboy fd93dcb43f perf(Switch): reduce loading and transition lifecycle overhead
ToggleSwitchShowCase materializes 13 Switch controls in the measured Gallery shape. Navigation/materialization runs when the user opens the Switch showcase; loading animation/render paths can run repeatedly while a Switch is loading.

Avoid duplicate transition lifecycle overrides, keep the loading cursor override scoped to loading state, cache the loading indicator pen, and skip wave playback when wave effects are disabled.

Verification: dotnet build tools/performances/AtomUI.Performance/AtomUI.Performance.csproj -c Debug --framework net10.0; dotnet run --project tools/performances/AtomUI.Performance/AtomUI.Performance.csproj -c Debug --framework net10.0 --no-build -- --verify-switch-states.
2026-05-23 11:37:26 +08:00
..