在 Visual Studio 中使用 XAML 热重载编写和调试正在运行的 XAML 代码Write and debug running XAML code with XAML Hot Reload in Visual Studio
09/23/2020
本文内容
XAML 热重载可帮助你在应用程序运行时对 XAML 代码进行更改,从而 (UI) 生成 WPF 或 UWP 应用用户界面。XAML Hot Reload helps you build your WPF or UWP app user interface (UI) by letting you make changes to XAML code while your app is running. 热重载适用于 Visual Studio 和 Blend for Visual Studio。Hot Reload is available in both Visual Studio and Blend for Visual Studio. 利用此功能,您可以通过运行中应用的数据上下文、身份验证状态以及在设计时难以模拟的其他真实复杂性的优点,逐步生成和测试 XAML 代码。This feature enables you to incrementally build and test XAML code with the benefit of the running app's data context, authentication state, and other real-world complexity that's hard to simulate during design-time. 如果需要帮助排查 XAML 热重载问题,请参阅 排查 Xaml 热重载问题 。If you need help troubleshooting XAML Hot Reload, see Troubleshooting XAML Hot Reload instead.
备注
If yo