diff --git a/src/Markup/Perspex.Markup.Xaml/PerspexXamlLoader.cs b/src/Markup/Perspex.Markup.Xaml/PerspexXamlLoader.cs index 8b9cd002e0..be233f27f2 100644 --- a/src/Markup/Perspex.Markup.Xaml/PerspexXamlLoader.cs +++ b/src/Markup/Perspex.Markup.Xaml/PerspexXamlLoader.cs @@ -45,6 +45,13 @@ namespace Perspex.Markup.Xaml /// /// Gets the URI of the XAML file currently being loaded. /// + /// + /// TODO: Making this internal for now as I'm not sure that this is the correct + /// thing to do, but its needd by to get the URL of + /// the currently loading XAML file, as we can't use the OmniXAML parsing context + /// there. Maybe we need a way to inject OmniXAML context into the objects it's + /// constructing? + /// internal static Uri UriContext => s_uriStack.Count > 0 ? s_uriStack.Peek() : null; ///