Answered by:
Trident/MSHTML/WebBrowser counterpart in metro

Question
-
I guess Metro IE 10 is also based on Trident too. My question is what is the metro component for app to utilizing this layout engine or any plan to support in the future?
- Moved by Rob Caplan [MSFT]Microsoft employee, Moderator Thursday, December 15, 2011 6:50 AM follow up question is about HTML/JavaScript programming (From:Building Metro style apps with C# or VB )
Wednesday, December 14, 2011 7:31 AM
Answers
-
Hi Ciger,
It will be extremely difficult to build your own browser in Metro. You may not have to depending on what you intend to do. I cannot give you an action plan in a forum post but I can get you started! My first thought is to render your HTML as fragments (http://msdn.microsoft.com/en-us/library/windows/apps/hh452768.aspx). This will give you some pretty nice capabilities. This article will also show you how to capture things like clicking on a hyper-link and cancelling that to do something different.
Here are some samples that will get you started as well: http://code.msdn.microsoft.com/windowsapps/site/search?query=fragment&f%5B0%5D.Value=fragment&f%5B0%5D.Type=SearchText&ac=8
-Jeff
Jeff Sanders (MSFT)- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Friday, December 16, 2011 2:51 PM
- Marked as answer by Ciger Monday, December 19, 2011 2:55 AM
Friday, December 16, 2011 2:51 PMModerator
All replies
-
Correct me if I'm wrong, but I think it may be the 'WebView' control. You can find it in the Toolbox.Wednesday, December 14, 2011 9:17 AM
-
WebView is the closest for Xaml. It is an HTML viewer though, not a fully functional browser control. If you want extensive HTML support you would be better off writing your Metro style app in HTML & Javascript rather than in Xaml.
--Rob
Wednesday, December 14, 2011 10:37 PMModerator -
Thanks J. We had looked at WebView, but as Rob said, it is more a viewer than a browser control. We have very limited way to customize it.
Thanks Rob,
What we want to do is a browser-like application on metro, based on certain layout engine like Trident. Did you mean that this can be done going JS/HTML approach? This would be a great news. I'm quite a newbie to JS/HTML. Could you please give a little bit more details?
Thanks.
- Edited by Ciger Thursday, December 15, 2011 2:26 AM
Thursday, December 15, 2011 1:57 AM -
Hi Ciger,
I'll move this to the HTML/JavaScript forum to discuss the capabilities of that UI stack.
--Rob
Thursday, December 15, 2011 6:49 AMModerator -
Hi Ciger,
What are you trying to do with the HTML you want to display? Where is the HTML coming from and how did you want to manipulate it?
-Jeff
Jeff Sanders (MSFT)Thursday, December 15, 2011 8:56 PMModerator -
Hi Jeff,
Thanks for the response.
Generally we are trying to render a bunch of HTML files in local disc those mostly compliant with HTML5. One example of our manipulation is that when user click a video link in the page, we'd like to chime in and get the video decrypted. And then pass forward the decrypted video to the HTML engine in some kind of active stream (if possible).
Thanks.
- Edited by Ciger Friday, December 16, 2011 2:33 AM
Friday, December 16, 2011 2:31 AM -
Hi Ciger,
It will be extremely difficult to build your own browser in Metro. You may not have to depending on what you intend to do. I cannot give you an action plan in a forum post but I can get you started! My first thought is to render your HTML as fragments (http://msdn.microsoft.com/en-us/library/windows/apps/hh452768.aspx). This will give you some pretty nice capabilities. This article will also show you how to capture things like clicking on a hyper-link and cancelling that to do something different.
Here are some samples that will get you started as well: http://code.msdn.microsoft.com/windowsapps/site/search?query=fragment&f%5B0%5D.Value=fragment&f%5B0%5D.Type=SearchText&ac=8
-Jeff
Jeff Sanders (MSFT)- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Friday, December 16, 2011 2:51 PM
- Marked as answer by Ciger Monday, December 19, 2011 2:55 AM
Friday, December 16, 2011 2:51 PMModerator -
Very helpful hints and reference. I was not aware of "fragments". We'll start thinking of that approach.
Thanks Jeff.
Monday, December 19, 2011 2:55 AM