Skip to content

Swapping a control or changing a container breaks hot generated fields #5731

Open

Description

@mattleibow

Description

If you have a control that is updated from the code behind use an x:Name field, hot reload sometimes disconnects it.

Steps to Reproduce

  1. Create a File | New | Maui app
  2. Run and edit the CounterLabel font for example
  3. Observe hot reload in action
  4. Change the container from a stack to a grid, and then back to a stack
  5. Change the CounterLabel font again
  6. Observe changes
  7. Click the button
  8. Observe the label does not update (breakpoints still work)

Version with bug

Release Candidate 1

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android, Windows, macOS

Affected platform versions

All

Did you find any workaround?

No response

Relevant log output

No response

Activity

  1. added
    t/bug
    area-tooling
    partner/ui-tools
    s/verified
    on Apr 1, 2022
  2. modified the milestones: 6.0.300-rc.3, 6.0.300 on Apr 27, 2022
  3. added
    p/2
    on Apr 29, 2022
  4. removed this from the 6.0.300 milestone on May 3, 2022
  5. 9 remaining items

  6. added
    s/triaged
    s/verified
    on Nov 2, 2023
  7. added
    s/move-to-vs-feedback
    on Aug 13, 2026
  8. dotnet-policy-service commented on Aug 13, 2026

    @dotnet-policy-service
    Contributor

    Thanks for the issue report @@mattleibow! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.

    If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

    1. Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
    2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.
  9. dotnet-policy-service commented on Aug 13, 2026

    @dotnet-policy-service
    Contributor

    Thanks for the issue report @mattleibow! This issue appears to be a problem with Visual Studio (Code), so we ask that you use the VS feedback tool to report the issue. That way it will get routed to the team that owns this experience in VS (Code).

    If you encounter a problem with Visual Studio or the .NET MAUI VS Code Extension, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.

    1. Go to the Visual Studio for Windows feedback tool or .NET MAUI VS Code Extension repository to report the issue
    2. Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.
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

    area-toolingpartner/ui-toolsplatform/androidplatform/iosplatform/macosplatform/windowss/move-to-vs-feedbacks/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions