-
Notifications
You must be signed in to change notification settings - Fork 48
Desktop_WPF Support status
Daniel Svensson edited this page Feb 1, 2018
·
1 revision
When porting a Silverlight solution to WPF there are currently a number of issues to be aware of.
Other Problems / Issues
- You get compile time errors if you mix OpenRia codegen with some types of XAML pages/resources. The best approach is to get all your code generation to happen in a separate class library which is then referenced by the rest of your application.
- You need to wait creating your WebContext until Application Startup (or you will get the wrong SyncronizationContext) instead of in Application constructor.
- You will probably need to set the DomainContext property manually when creating the FormsAuthentication to your AuthenticationContext
My recommendation is that you start with the following 2 steps before starting your migration
- Refactor your project so that you separate your code generation to a project without XAML
- Make sure that you use the latest version of OpenRiaServices and that you manually configure a RiaDomainClientFactory for DomainContext.DomainClientFactory.