Skip to content

Commit

Permalink
Update LoadExtension.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
wieslawsoltes committed Jul 24, 2020
1 parent c8e8cdd commit bdbaf5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Dock.Avalonia/Controls/MarkupExtensions/LoadExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bdbaf5e

Please sign in to comment.