Visual Studio 2019 provides the XAML Hot Reload function, which allows the XAML code to be modified after the WPF program is running and displayed in real time.
XAML Hot Reload function can also be used in Blend For Visual Studio 2019.
For .Net Framework WPF programs, only Visual Studio 2019 is required.
For .Net Core WPF programs, you need to install the Visual Studio 2019 version 16.3.0 update.
XAML Hot Reload is enabled by default, you can go to “Debug” -> “Options” -> “General” -> “Enable XAML UI Call Tool” -> “Enable XAML Hot Reload”< /strong>Turn it on or off
The actual operating results are as follows
< h2 id="known-limitations">The current limitations of this feature are as follows
Limitations |
< p style="text-align: center;" align="left">Whether WPF is supported |
Description |
< p align="left">Link events to controls while the application is running |
Not supported |
|
reference resources in existing resource dictionary or add resource objects |
Need to install Visual Studio 2019 Update 2 |
Does not support the creation of resource dictionary files |
Add new controls, classes, windows or other files to the project while the application is running |
not supported |
|
Manage Nuget packages |
Not supported |
|
Change data binding |
Not available (UWP Available) |
Limitations |
Whether WPF is supported |
Instructions |
In the application Link events to controls when the program is running |
not supported td> |
|
reference resources in existing resource dictionary or add resource objects |
Need to install Visual Studio 2019 Update 2 |
The creation of resource dictionary files is not supported |
Add new controls, classes, windows or other files to the project while the application is running |
not supported |
|
Manage Nuget packages td> |
not supported |
|
Change data binding |
Not available (UWP available)< /p> < /td> |