Exemple #1
0
        /// <summary>
        /// Enable to open Hyperlink in external browser
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Hyperlink_Click(object sender, RoutedEventArgs e)
        {
            e.Handled = true;

            var wxObj = e.OriginalSource as Hyperlink;

            string opt;

            if (wxObj.DataContext is LimeProperty prop)
            {
                opt = LimeProperty2CliConverter.Get(prop);
            }
            else
            {
                opt = wxObj.DataContext as string;
            }

            if (opt == null)
            {
                return;
            }
            opt += " ";
            LimeMsg.Info("CopyClip", opt);
            Clipboard.SetText(opt);
        }