Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you mix HTML and XAML in a windows 8 Metro App?

Is there anyway to mix HTML UI and XAML UI in a windows 8 Metro App?

like image 719
klumsy Avatar asked Nov 03 '22 22:11

klumsy


1 Answers

I believe no, XAML and HTML/CSS are separate paths when it comes to presentation layer and you can't mix them (except for the 'dirty tricks' like WebView control in XAML, but it's no use for component reusability).

The Windows 8 architecture diagram might be useful to see how XAML/HTML/WinRT are they related. Apps in HTML/JS are rendered in Internet Explorer 10 Metro, just in another context (with extended APIs , different security rules etc), while XAML has different mechanisms. WinRT is deep below the presentation layer.

like image 141
Paweł Bulwan Avatar answered Nov 13 '22 01:11

Paweł Bulwan