EmbeddedXamlProvider requires Application instance in new Noesis versions
Posted: 06 May 2019, 15:15
Hi,
In our app we use the EmbeddedXamlProvider that loads a bunch of xamls embedded as binaries in a managed dll.
Trying to port the following code to use the latest Noesis dlls fails.
It seems that EmbeddedXamlProvider must now receive an application instance.
The reason we use this method is because we wish to render the Xaml elements to a texture (offscreen rendering).
Questions:
1. Is there an alternative way to load embedded xamls? I do not wish to ship the raw xaml files with our binaries.
2. can I somehow create a dummy app that will have the embedded xamls and still allow me to do offscreen rendering (with low overhead)?
Thanks,
Elad (BeyeOnics)
In our app we use the EmbeddedXamlProvider that loads a bunch of xamls embedded as binaries in a managed dll.
Trying to port the following code to use the latest Noesis dlls fails.
It seems that EmbeddedXamlProvider must now receive an application instance.
Code: Select all
EmbeddedXaml[] xamls = new EmbeddedXaml[]
{
new EmbeddedXaml { filename = "HUDPanel.xaml", resource = "HUDPanel" },
new EmbeddedXaml { filename = "LeftToolbarOverlay.xaml", resource = "LeftToolbarOverlay" },
new EmbeddedXaml { filename = "TopToolbarOverlay.xaml", resource = "TopToolbarOverlay" }
};
var xamlProvider = new EmbeddedXamlProvider(xamls, rm);
GUI.SetXamlProvider(xamlProvider);Questions:
1. Is there an alternative way to load embedded xamls? I do not wish to ship the raw xaml files with our binaries.
2. can I somehow create a dummy app that will have the embedded xamls and still allow me to do offscreen rendering (with low overhead)?
Thanks,
Elad (BeyeOnics)