Page 1 of 1

Is there a plan to implement ParserContext?

Posted: 15 Nov 2021, 11:18
by sericaer
I want to load image resource from a mod path, so I use flow code, which is run success in Blend.
                var pc = new ParserContext
                {
                    BaseUri = new Uri(modPath + mod + "/", UriKind.Absolute)
                };

                var viewComponent = XamlReader.Parse(xaml, pc) as FrameworkElement;
                return viewComponent;
But ParserContext is not support in Noesis. Is there a plan to implement ParserContext?

Best Regards

Re: Is there a plan to implement ParserContext?

Posted: 17 Nov 2021, 13:00
by sfernandez
This is certainly an interesteing thing to support, could you please add a ticket in our bugtracker to study it?
At least for the BaseUri it seems something we can easily implement.

Re: Is there a plan to implement ParserContext?

Posted: 18 Nov 2021, 02:47
by sericaer
Thanks for your reply! I have added a ticket.
https://www.noesisengine.com/bugs/view.php?id=2195