I want to share as much code as possible between Silverlight and WPF.
- My lowest level handles the difference between calling the database directly and calling a web service.
- My data layer on top of that is compiled with both .NET and Silverlight.
- My GUI layer is currently designed as a WPF Control Library.
For sivlerlight...
- Is it possible to reuse my XAML for my silverlight class library?
- Do I need to create a "Silverlight Application" or can I just display controls from my class library directly?
- What things do I need to be careful about? (For example, I already learned that Silverlight can't use DataTables in web service calls.)