tags:

views:

50

answers:

1

Im creating a custom control. I have common code for WPF and XBAP application. I have some different calculation/work to do if it’s a XBAP application. How to detect whether it’s an xbap application or a WPF application?

A: 

You can use System.Windows.Interop.BrowserInteropHelper.IsBrowserHosted property identify whether it is hosted on web or windows

Nayan Paregi
Great that's what I was looking for. Thanks
Somnath