ClientUI HyperlinkButton

1 reply. Last post: January 13, 2011 12:57 AM by Jimmy Petrus
Tags :
  • New Discussion
  • New Question
  • New Product Feedback

Hi,

The UXHyperlinkButton when used OOB will not navigate to a web page that is not part of the application.  This behavior is the same with the built in Silverlight hyperlink due to security from my understanding

One of the answers I found on the internet was to inherit from the hyperlinkbutton class. (See below)

  public class MyHyperlinkButtonHyperlinkButton
    {
        public MyHyperlinkButton(string navigateUri)
        {
            base.NavigateUri = new Uri(navigateUri);
            TargetName = "_blank";
        }
        public void Navigate()
        {
            base.OnClick();
        }
    }

Then on the form calling the hyperlink:


        private void UXHyperlinkButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            MyHyperlinkButton button = new MyHyperlinkButton("http://www.intersoftpt.com/");
            button.Navigate();
        }

 

I was wondering if you could add this function natively to your UXHyperlinkButton?

 

Thanks

Andre

All times are GMT -5. The time now is 4:19 PM.
Previous Next