sericaer
Topic Author
Posts: 10
Joined: 09 Oct 2021, 09:29

Is there a plan to implement ParserContext?

15 Nov 2021, 11:18

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
 
User avatar
sfernandez
Site Admin
Posts: 2664
Joined: 22 Dec 2011, 19:20

Re: Is there a plan to implement ParserContext?

17 Nov 2021, 13:00

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.
 
sericaer
Topic Author
Posts: 10
Joined: 09 Oct 2021, 09:29

Re: Is there a plan to implement ParserContext?

18 Nov 2021, 02:47

Thanks for your reply! I have added a ticket.
https://www.noesisengine.com/bugs/view.php?id=2195

Who is online

Users browsing this forum: Google [Bot] and 0 guests