Repository navigation
Closed
Labels
area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingarea-xamlXAML, CSS, Triggers, Behaviorspartner/hot-reload-xamlIssues impacting XAML Hot Reload experiencesplatform/windowss/triagedIssue has been reviewedt/bugSomething isn't working
Milestone
Description
Description
With source-generated XAML Hot Reload enabled, changing only the StringFormat of an x:Reference-sourced binding can clear the live binding value after an earlier accepted edit. The value becomes empty instead of being reformatted or remaining stale.
Internal tracking: DevDiv 3049807
Steps to Reproduce
- Target .NET 11 Preview 7 / MAUI Preview 7 on WinUI and enable SourceGen XAML inflation and Hot Reload.
- Render two live instances of a
ContentViewcontaining:<Label x:Name="CaptionLabel" Text="Instance caption V0" /> <Label Text="{Binding Source={x:Reference CaptionLabel}, Path=Text, StringFormat='echo {0}'}" />
- Run under
dotnet watchand verify both instances showecho Instance caption V0. - Change the caption to
Instance caption V1, save, and verify both instances update. - Change only
StringFormat='echo {0}'toStringFormat='mirror {0}'and save.
Expected Behavior
Both live instances show mirror Instance caption V1.
Actual Behavior
The update is reported as applied, but the formatted binding value is empty.
Version with bug
.NET 11 Preview 7 / MAUI Preview 7 with SourceGen XAML inflation and Hot Reload enabled.
Affected platforms
Windows was verified. The affected path appears to be cross-platform generated binding-update code.
Related issues
- [P0 blocker][XAML SourceGen Hot Reload] Subsequent updates fail with ENC1002 after generated method identity is lost #36824 tracks loss of generated method identity across subsequent updates.
- [XAML Hot Reload] SourceGen HR: successive DataTemplate edits under dotnet watch crash the app / poison HR / kill the watcher (PR #34338) #36482 tracks unstable generated identity for successive
DataTemplateedits. - [XSG] XamlHotReloadState static cache is brittle across multiple throwaway Roslyn compilations #36937 tracks brittle SourceGen Hot Reload state across compilations.
None of those issues currently tracks this binding replacement/clearing behavior directly.
Reacted by github-actions
Metadata
Metadata
Assignees
Labels
area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingarea-xamlXAML, CSS, Triggers, Behaviorspartner/hot-reload-xamlIssues impacting XAML Hot Reload experiencesplatform/windowss/triagedIssue has been reviewedt/bugSomething isn't working
Activity
Fix x:Reference binding updates during XAML Hot Reload (#37895)
github-actions commentedon Sep 3, 2026
Closed by #37895 (merged to
net11.0). GitHub only auto-closes for PRs merged to the default branch; this issue was fixed by a PR merged to a non-default branch.