I have an application built in WPF.
I want to rewrite the presentation layer to make it a metro style app.
Unfortunately I cannot do this because I cannot directly reference the business dlls in a metro style project and the metro style class library doesn’t provide access to some components that I need.
Since I only want it to run on x86 anyway, is there a way to reference the other projects in the presentation so they will work directly with win32 as before and only the presentation to go through winRT?
Thanks.
It may be possible to access what you need in Win32 through the limited PInvoke support but you’re most likely going to need to rewrite your library code as a Metro library to do that, rather than crossing the boundary to call your unmodified DLL on the Win32 side (which would obviously be a lot easier). You should also keep in mind that anything you do to circumvent WinRT (i.e. non-ARM supported APIs) is probably going to fail application validation and won’t be able to make it into the Store.