The original address: How can I get a FlowDocument Hyperlink to launch browser and go to the URL in a WPF app?
#regionActivate Hyperlinks in the Rich Text box//http://stackoverflow.com/questions/5465667/handle-all-hyperlinks-mouseenter-event-in-a-loaded-loose-flowdocument voidsubscribetoallhyperlinks (FlowDocument FlowDocument) {varHyperlinks = Getvisuals (flowDocument). Oftype(); foreach(varLinkinchhyperlinks) Link. Requestnavigate+=NewSystem.Windows.Navigation.RequestNavigateEventHandler (link_requestnavigate); } Public StaticIenumerable<dependencyobject>getvisuals (DependencyObject root) {foreach(varChildinchLogicaltreehelper.getchildren (Root). Oftype<dependencyobject>()) { yield returnChild ; foreach(varDescendantsinchgetvisuals (child))yield returndescendants; } } voidLink_requestnavigate (Objectsender, System.Windows.Navigation.RequestNavigateEventArgs e) { //http://stackoverflow.com/questions/2288999/ HOW-CAN-I-GET-A-FLOWDOCUMENT-HYPERLINK-TO-LAUNCH-BROWSER-AND-GO-TO-URL-IN-A-WPFProcess.Start (NewProcessStartInfo (E.uri.absoluteuri)); E.handled=true; } #endregionActivate Hyperlinks in the Rich Text box
"Go" WPF found hyperlink from FlowDocument