Is it possible to develop against Silverlight and WPF using the same source code? Maybe using some #define blocks where it is necessary.
Is it possible to develop against Silverlight and WPF using the same source code?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Theoretically it should be doable. It’s not a big problem for the code. However, you’ll have to be very careful with XAML and use only the intersecting subset of WPF and SL (1), as there’s no
#if/#endiffor XAML.(1) Contrary to the common belief, SL is not a proper subset of WPF. It has some features that WPF does not have, though these are being worked on.