dotnet / dotnet/roslyn

Rename feature in XAML within VS2022

Open
#77,894 2 comments 0 reactions 0 assignees View on GitHub
Area-IDE help wanted
Dominant language
C#
Stars
20.7k
Forks
4.3k
PR merge metrics
PR metrics pending

Description

1.I cannot rename a button named by x:Name in XAML. Even if I change the x:Name of the button, the reference in the code - behind doesn't change synchronously.

2.When binding to an object data source, if I rename some property names, the references to those properties in XAML don't change synchronously.

How can I fix this in VS2022?

Contributor guide

Open the contributing guide

Research direction

No repository file, test, or entry point is named. Start by reproducing the x:Name rename and bound-property rename scenarios in VS2022, then trace which XAML and code-behind references are expected to update. Done means the intended reference synchronization behavior is reproduced, fixed, and covered by a relevant test.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.