Hello,
The "References" doesn't show the reference number from the .xaml. Please see Find code changes and other history with CodeLens - Visual Studio (Windows) | Microsoft Learn
If the indicator shows 0 references, you don't have any references from your C# or Visual Basic code. However, there might be references in other items such as .xaml and .aspx files.
(Also, I added a VS tag for this thread since the issue is related to IDE)
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.