Skip to content

[Breaking change]: Remove ApplySettersBeforeTransition feature flag #13326

Closed

Description

@Youssef1313

This flag should probably be removed.

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    project/animations 🎡
    on Aug 21, 2023
  2. jeromelaban commented on Aug 21, 2023

    @jeromelaban
    Member

    If the flag is unused, we can already remove it.

  3. Youssef1313 commented on Aug 21, 2023

    @Youssef1313
    MemberAuthor

    It's not unused, but I wouldn't expect any app to want to use it.

  4. Youssef1313 commented on Aug 21, 2023

    @Youssef1313
    MemberAuthor

    public static class VisualState
    {
    /// <summary>
    /// When this is set, the <see cref="Windows.UI.Xaml.VisualState.Setters"/> will be applied synchronously when changing state,
    /// unlike UWP which waits the for the end of the <see cref="VisualTransition.Storyboard"/> (if any) to apply them.
    /// </summary>
    /// <remarks>This flag is for backward compatibility with old versions of uno and should not be turned on.</remarks>
    public static bool ApplySettersBeforeTransition { get; set; }
    }

    // For backward compatibility, we may apply the setters before the end of the transition.
    if (FeatureConfiguration.VisualState.ApplySettersBeforeTransition)
    {
    ApplyTargetStateSetters();
    }

    The behavior when this flag is true doesn't match Windows in any case, I think.

  5. jeromelaban commented on Aug 21, 2023

    @jeromelaban
    Member

    Ok, then let's keep it for now.

  6. added
    difficulty/starter 🚀
    kind/breaking-change 💥
    and removed
    triage/untriaged
    difficulty/tbd
    on Oct 23, 2023
  7. github-actions commented on Aug 12, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  8. added
    stale
    on Aug 12, 2025
  9. removed
    stale
    on Aug 12, 2025
  10. MartinZikmund commented on Aug 12, 2025

    @MartinZikmund
    Member

    Relevant

  11. MartinZikmund commented on Nov 8, 2026

    @MartinZikmund
    Member

    This flag has been removed in #23666, which reached master through #23471, so visual state setters now always apply after the transition, matching WinUI. The removal is listed in the migration guide (

    | `FeatureConfiguration.VisualState.ApplySettersBeforeTransition` | A `VisualState`'s `Setters` are applied when its `VisualTransition` storyboard ends, not when the state change starts. |
    ) and ships in 7.0. Please open a new report if you still run into a problem in this area.

    This was checked as part of an AI-assisted backlog review by reading the code, not by running it. If it looks wrong, please reply and we will take another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/starter 🚀kind/breaking-change 💥kind/enhancementno-reproproject/animations 🎡

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions