views:

227

answers:

0

Hi, Im trying to display a website (http://www.google.com) in a flowdocument i got. Found a demo on the web where this guy makes a hyperlink in a flowdocument and that link points to the google webaddress. Clicking the link makes the google website open in the flowdocument. How to do this in codebehind? i have tried the following without luck:

string webSiteUrl = doc.SelectSingleNode("website").InnerText;
Uri link = new Uri(webSiteUrl);
FlowDocument flowDocument = (FlowDocument)Application.LoadComponent(link);

the application says that it cannot use absolute location - anyone have an idea?