0

enter image description here

I'm learning how the back end and front end work together by reviewing WPF (Window Presentation Foundation) code.

The project runs locally on my machine. I copied it from my team's shared folder.

My review process:

  1. Start debugging

  2. Interact with the UI in the application shell

  3. Open Live Visual Tree -> Select Element to locate XAML

  4. Right-click an element -> View Source button to open the XAML or C# code-behind

However, the View Source feature has stopped working. I can no longer see the elements' code, and I also can't view the XAML.

Does anyone know why the View Source feature would stop working in the WPF Live Visual Tree, or how I can fix it?


Environment

  • language: C#

  • OS: Windows 11, version 24H2

  • .NET SDK version: 10.0.100

Thank you.

New contributor
Giwoon Lee is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
4
  • Hm... It's interesting. Could provide an absolutely minimal code sample complete with a project file(s) and a solution file? Please see: How to create a Minimal, Reproducible Example. Commented 2 days ago
  • 1
    What VSCode extension are you using for your .NET/WPF application? It's not clear how cannot you view your XAML. You can see view it by loading it from Solution Explorer or even the file system tree. Commented 2 days ago
  • 1
    does it work if you try to View Source on elements which are actually defined in your xaml markup (most likely ListBoxItems are not in markup, they are generated by ListBox) Commented 2 days ago
  • I was able to see the View Source on the [StackPanel]... I think Ash hit the nail on the head! Thank you all. Commented yesterday

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.