From 6e1ffed1fae9895a4335784e05c1afb7c7944761 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Sat, 6 Apr 2024 15:40:36 +0300 Subject: [PATCH] Disabled hot reload for unquoted `StaticResource`s Fixes #2 --- src/HotAvalonia/Helpers/AvaloniaControlHelper.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HotAvalonia/Helpers/AvaloniaControlHelper.cs b/src/HotAvalonia/Helpers/AvaloniaControlHelper.cs index b515757..22d2313 100644 --- a/src/HotAvalonia/Helpers/AvaloniaControlHelper.cs +++ b/src/HotAvalonia/Helpers/AvaloniaControlHelper.cs @@ -175,8 +175,8 @@ public static void Clear(object? control) /// The XAML markup with static resources replaced by their dynamic counterparts. private static string MakeStaticComponentsDynamic(string xaml) { - const string staticResourceName = "{StaticResource "; - const string dynamicResourceName = "{DynamicResource "; + const string staticResourceName = "\"{StaticResource "; + const string dynamicResourceName = "\"{DynamicResource "; return xaml.Replace(staticResourceName, dynamicResourceName); }