Beispiel #1
0
        void updateCopy()
        {
            string    s    = AssemblyCopyright;
            string    url  = Util.extractUrl(s);
            string    text = Util.extractText(s);
            Hyperlink link = new Hyperlink(new Run(text))
            {
                NavigateUri = new Uri(url)
            };

            link.RequestNavigate += new System.Windows.Navigation.RequestNavigateEventHandler(link_RequestNavigate);
            copyText.Inlines.Add(link);
        }