How can I tell if code is running in an XBAP application or a WPF application?

I'm creating a custom control. I have generic code for WPF and XBAP applications. I have another calculation / work to do if this is an XBAP application. How can I tell if there is an xbap app or a WPF app?

+2


a source to share


1 answer


You can use the System.Windows.Interop.BrowserInteropHelper.IsBrowserHosted property to determine if it is hosted on the Internet or Windows



+3


a source







All Articles