Question

After reading about Visual Studio 11's Portable Libraries, I tried putting my common library for WPF into one that targets both .NET 4 and Metro-style UIs. I can't seem to figure out how to get the compiler to recognize certain classes, even after adding additional references while ignoring the warning that "The project will be retargeted to the .NET portable subset". The ones that puzzle me the most are the classes "Control" and "ItemsControl" since I know they exist in both WPF and Metro UIs. Why can't the compiler find these classes?

Was it helpful?

Solution

The portable libraries are for non-GUI type classes. Mostly business logic.

OTHER TIPS

As already mentioned, the UI layer between WPF and Metro is not portable or compatible. The approach we suggest is to use MVVM to seperate business logic from UI logic, I've written an article doing this very thing over here: http://msdn.microsoft.com/en-us/magazine/hh852593.aspx.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top