{"id":228,"date":"2015-12-29T11:50:25","date_gmt":"2015-12-29T11:50:25","guid":{"rendered":"http:\/\/www.softreeconsulting.com\/?p=228"},"modified":"2015-12-29T11:50:25","modified_gmt":"2015-12-29T11:50:25","slug":"hyperlink-programmatically-in-wpf-in-india","status":"publish","type":"post","link":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/","title":{"rendered":"Add HyperLink programmatically in WPF."},"content":{"rendered":"<p>[code lang=&#8221;c&#8221;]<br \/>\nLabel linkLabel = new Label();<\/p>\n<p>Run linkText = new Run(\u201c(\u201d + displayName+ \u201c)\u201d);<\/p>\n<p>Hyperlink link = new Hyperlink(linkText);<\/p>\n<p>link.NavigateUri = new Uri(\u201chttp:\/\/url\u201d);<\/p>\n<p>link.RequestNavigate += new RequestNavigateEventHandler(delegate (object sender, RequestNavigateEventArgs e)<\/p>\n<p>{<\/p>\n<p>Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri));<\/p>\n<p>e.Handled = true;<\/p>\n<p>});<\/p>\n<p>linkLabel.Content = link;<\/p>\n<p>[\/code]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[code lang=&#8221;c&#8221;] Label linkLabel = new Label(); Run linkText = new Run(\u201c(\u201d + displayName+ \u201c)\u201d); Hyperlink link = new Hyperlink(linkText); link.NavigateUri = new Uri(\u201chttp:\/\/url\u201d); link.RequestNavigate += new RequestNavigateEventHandler(delegate (object sender, RequestNavigateEventArgs e) { Process.Start(new ProcessStartInfo(e.Uri.AbsoluteUri)); e.Handled = true; }); linkLabel.Content = link; [\/code]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43,90],"tags":[88,89,91],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-sharepoint","category-wpf","tag-how-to-add-hyperlinks-programmatically-using-wpf","tag-hyperlink","tag-wpf"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>HyperLink programmatically in WPF in India<\/title>\n<meta name=\"description\" content=\"HyperLink programmatically in WPF in India\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HyperLink programmatically in WPF in India\" \/>\n<meta property=\"og:description\" content=\"HyperLink programmatically in WPF in India\" \/>\n<meta property=\"og:url\" content=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/\" \/>\n<meta property=\"og:site_name\" content=\"Softree Technology\" \/>\n<meta property=\"article:published_time\" content=\"2015-12-29T11:50:25+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"HyperLink programmatically in WPF in India","description":"HyperLink programmatically in WPF in India","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/","og_locale":"en_US","og_type":"article","og_title":"HyperLink programmatically in WPF in India","og_description":"HyperLink programmatically in WPF in India","og_url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/","og_site_name":"Softree Technology","article_published_time":"2015-12-29T11:50:25+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/#article","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/"},"author":{"name":"admin","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b"},"headline":"Add HyperLink programmatically in WPF.","datePublished":"2015-12-29T11:50:25+00:00","mainEntityOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/"},"wordCount":51,"commentCount":0,"publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"keywords":["how to add hyperlinks programmatically using WPF","HYPERLINK","WPF"],"articleSection":["SharePoint","WPF"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/","url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/","name":"HyperLink programmatically in WPF in India","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/#website"},"datePublished":"2015-12-29T11:50:25+00:00","description":"HyperLink programmatically in WPF in India","breadcrumb":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/hyperlink-programmatically-in-wpf-in-india\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/softreetechnology.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Add HyperLink programmatically in WPF."}]},{"@type":"WebSite","@id":"https:\/\/softreetechnology.com\/blog\/#website","url":"https:\/\/softreetechnology.com\/blog\/","name":"Softree Technology","description":"Celebrating 10+ Years in SharePoint Consulting !","publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/softreetechnology.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/softreetechnology.com\/blog\/#organization","name":"Softree Technology","url":"https:\/\/softreetechnology.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","contentUrl":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","width":844,"height":230,"caption":"Softree Technology"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/softreeconsulting.com"],"url":"https:\/\/softreetechnology.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":0,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"wp:attachment":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}