Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: Noesis documentation and few question about 2.1.0 verison (C++)

22 Dec 2017, 23:52

Are those information relevant to 2.1 version?
I am trying this
Noesis::Ptr<Noesis::XamlProvider> xpr = Noesis::GUI::LoadXaml("Main.xaml"); // compiler stop at this beacuse he can't convert baseComponent class to XamlProvider
Edit:
I discover how is bin tools used, I guess. But to be clear, I don't want use this tool for load xaml files. Not now, because I think it is good idea to have xaml files in exe (if I understand this tool correctly).
 
User avatar
jsantos
Site Admin
Posts: 2903
Joined: 20 Jan 2012, 17:18
Contact:

Re: Noesis documentation and few question about 2.1.0 verison (C++)

23 Dec 2017, 04:43

I discover how is bin tools used, I guess. But to be clear, I don't want use this tool for load xaml files. Not now, because I think it is good idea to have xaml files in exe (if I understand this tool correctly).
Yes, it makes sense. We are embedding resources in our samples because that way it is easier to debug and deploy. But, in your case, you can use the local implementations (LocalXamlProvider, LocalTextureProvider and LocalFontProvider) to load resources from disk.
 
Wanderer
Topic Author
Posts: 168
Joined: 08 May 2017, 18:36

Re: Noesis documentation and few question about 2.1.0 verison (C++)

23 Dec 2017, 11:08

Ok, thanks. Finally I resolve it and now it load xaml from hdd, I hope. Now I need resolve RenderDevice.

I want only inform, LocalXamlProvider needs add aditional directory Src\Packages\App\Launcher\Include and then #include <NsApp\LocalXamlProvider.h> and use NoesisApp namespace.
Jsantos please keep in mind when you creating documentation for this details, because who is new in this, he does not have to think about it (to better understand, he can not come up with such a thought - use aditional direcoty and include *.h from noesis), because other library have one header where is all included and then doesn't need thinkink to include another headers, or is mentioned in documentation what it needs.

Who is online

Users browsing this forum: No registered users and 1 guest