0

Overlay does not function when extending a template from a different project

Anonymous 10 years ago 0
This discussion was imported from CodePlex

JasonXtreme wrote at 2014-03-31 13:57:

Good day,

I have two projects in a WPF solution, P1 is the main .exe assembly including the Helix3DViewport and an object that extends a base class in P2. The base class in P2 sets up an interface and contains a function that among other things sets a text overlay via Overlay.SetPosition3D and updates it on interaction. If this base class is situated in P1, the overlay works perfectly, but if the base class is moved to the other project, the overlay simply applies the text to the bottom left corner of the overlay canvas. Could there be a workaround for this, as I really need the base class to be in a class library rather than in P1?

Thank you in advance,
Jason

objo wrote at 2014-04-29 10:33:

This was difficult, can you create a small example that we can use to debug?

JasonXtreme wrote at 2014-04-30 01:41:

Terribly sorry I forgot, I found that I added the overlay static class manually (copied and pasted the code as it was not in the library for some reason). Adding this class to both projects solved the issue. I find it weird that I received no error though.