1

I am hesitant to develop a Windows Phone app in the HTML/WinJS Universal App space because of the difficulty of building complex user controls. Before I go the XAML/C# route, I would like to find out if it is possible to use a user control built in XAML/C# inside of an HTML/WinJS view?

My initial feeling is that it is not possible due to XAML parsing not being available in the HTML space, but I am not certain that this is the case. Any thoughts?

Also, I am not interested in 3rd party solutions such as Xamerin. I am really trying to see if this is possible from a native approach.

J.Walker
  • 45
  • 6

1 Answers1

2

No. The HTML and Xaml UI stacks in the Windows Runtime are separate and cannot be mixed. You can call non-UI C# or native Windows Runtime Components from JavaScript.

You can include HTML in a Xaml WebView, but there is no reverse hosting.

--Rob

Rob Caplan - MSFT
  • 21,714
  • 3
  • 32
  • 54
  • Thank you @RobCaplan. This is exactly the information that I needed. I had a feeling that the two couldn't work like that, but I needed to make certain. – J.Walker Dec 11 '14 at 21:45