HtmlTextBlock: Navigate to url in WinRT

Feb 27, 2013 at 12:00 PM
Edited Feb 27, 2013 at 12:02 PM
Does anyone have solution for making the LinkGenerator navigate to url (via browser), when the link is tapped on the HtmlTextBlock for WinRT?

The source code has some uncommented code, which I think needs to be converted to WinRT compatible code:
//action = delegate {
//if (NavigationState.TryBeginNavigating())
    //origAction();
//};

//hr.Command = new RelayCommand(action);    
Coordinator
Feb 28, 2013 at 10:56 PM
Edited Feb 28, 2013 at 10:57 PM
The generator has been implemented and works in WinRT. Use FixedHtmlTextBlock and a ScrollViewer because HtmlTextBlock has been removed in WinRT...

See http://mytoolkit.codeplex.com/wikipage?title=HtmlTextBlock

The change is only available directly from SVN or download, and will be later available as NuGet update...

Is it working for you?
Mar 1, 2013 at 10:04 AM
Thanks!

It is working fine, but I got an InvalidOperationException when launching the browser, which disappeared when I changed CreateLinkAction() to the following:

return () => Launcher.LaunchUriAsync(new Uri(link));
Coordinator
Mar 1, 2013 at 11:06 AM
Edited Mar 1, 2013 at 11:06 AM
Thanks for your info.. is now in subversion...
If you implement HtmlTextBlock (with scrollviewer) please post it here...