pappu singh

pappu singh

  • NA
  • 1
  • 814

Opening Hyperlink from document viewer via Touch event WPF

Jun 16 2015 7:13 AM


Hi, I have a word document and opening in document viewer in WPF C#. word document is having some hyperlinks, to function these links I have added RequestNavigateEvent event handler so it's working fine but not working in touch device on touch of these links. My code is like this...
public MsDocumenViewer()
{
InitializeComponent();
documentViewer1.AddHandler(Hyperlink.RequestNavigateEvent, new RequestNavigateEventHandler(link_RequestNavigate));
}

void link_RequestNavigate(object sender, RequestNavigateEventArgs e)
{
string urlwithJunkCharacter = e.Uri.ToString();
}

Please help me to achieve this.
Thanks.