Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio: Edit XAML file while debugging

Tags:

I have a WPF application running in debug mode, and I would like to change the XAML while the application is still running.

I'm not asking for Edit-and-Continue. I don't mind that I will have to restart the application for the changes to become effective. I just want to be able to make changes to the XAML file while the application is still running, rather than having to (1) remember what I want to change in the UI, (2) close the application, (3) recall what I want to change and make the change.

like image 824
Heinzi Avatar asked Jul 26 '10 15:07

Heinzi


2 Answers

Menu => Debug => Detach All

like image 92
Wallstreet Programmer Avatar answered Sep 20 '22 12:09

Wallstreet Programmer


Right-click the XAML file in Solution Explorer and select Open With..., then choose Source Code (Text) Editor and click Set as Default. You can then edit XAML files while the app is running, without detaching. You'll need to reopen any XAML files before this works. Tested in VS2012.

like image 32
Tim Woods Avatar answered Sep 16 '22 12:09

Tim Woods