From bdbaf5e83219054988d09adb038271f228c7db94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Fri, 24 Jul 2020 22:39:59 +0200 Subject: [PATCH] Update LoadExtension.cs --- src/Dock.Avalonia/Controls/MarkupExtensions/LoadExtension.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Dock.Avalonia/Controls/MarkupExtensions/LoadExtension.cs b/src/Dock.Avalonia/Controls/MarkupExtensions/LoadExtension.cs index 0c019c8d9..988c72eb1 100644 --- a/src/Dock.Avalonia/Controls/MarkupExtensions/LoadExtension.cs +++ b/src/Dock.Avalonia/Controls/MarkupExtensions/LoadExtension.cs @@ -36,8 +36,7 @@ public LoadExtension(Uri source) if (serviceProvider.GetService(typeof(IUriContext)) is IUriContext uriContext) { var baseUri = uriContext.BaseUri; - var loader = new AvaloniaXamlLoader(); - var obj = loader.Load(Source, baseUri); + var obj = AvaloniaXamlLoader.Load(Source, baseUri); return obj; } return default;