{"id":481,"date":"2016-07-10T17:18:38","date_gmt":"2016-07-10T08:18:38","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2016\/07\/10\/wpf_1\/"},"modified":"2016-07-10T17:18:38","modified_gmt":"2016-07-10T08:18:38","slug":"wpf_1","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2016\/07\/10\/wpf_1\/","title":{"rendered":"WPF \u30c7\u30fc\u30bf\u30b0\u30ea\u30c3\u30c9\u3067\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u30af\u30ea\u30c3\u30af\u3092\u51e6\u7406"},"content":{"rendered":"<p>[<a href=\"http:\/\/typea.info\/tips\/wiki.cgi?page=WPF+Tips\"><u>WPF Tips<\/u><\/a>]<\/p>\n<p><a href=\"http:\/\/typea.info\/products\/shikalog.html\">WPF \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4f5c\u6210\u3067\u5f97\u305fTips\u3092\u30e1\u30e2<\/a>\u3002<\/p>\n<p> <a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/4798114200\/ref=as_li_ss_il?ie=UTF8&amp;camp=247&amp;creative=7399&amp;creativeASIN=4798114200&amp;linkCode=as2&amp;tag=typea09-22\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4798114200&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\" \/><\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-top-style: none !important; border-left-style: none !important; border-bottom-style: none !important; border-right-style: none !important; margin: 0px\" border=\"0\" alt=\"\" src=\"http:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=4798114200\" width=\"1\" height=\"1\" \/>   <\/p>\n<h2>1.\u72b6\u6cc1<\/h2>\n<p>DataGrid \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30bb\u30eb\u306b\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u914d\u7f6e\u3057\u305f\u3044\u3002<\/p>\n<h2>2.\u5bfe\u5fdc<\/h2>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WPF-_1272E\/wpf_data_grid_hyperlink.jpg\"><img loading=\"lazy\" decoding=\"async\" title=\"wpf_data_grid_hyperlink\" style=\"border-left-width: 0px; border-right-width: 0px; background-image: none; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"wpf_data_grid_hyperlink\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/WPF-_1272E\/wpf_data_grid_hyperlink_thumb.jpg\" width=\"439\" height=\"167\" \/><\/a><\/p>\n<h2>3.\u53c2\u8003<\/h2>\n<ul>\n<li><a href=\"http:\/\/stackoverflow.com\/questions\/5764951\/using-wpf-datagridhyperlinkcolumn-items-to-open-windows-explorer-and-open-files\">Using WPF DataGridHyperLinkColumn Items to open Windows Explorer and open files<\/a> <\/li>\n<\/ul>\n<h2>4.\u30b5\u30f3\u30d7\u30eb<\/h2>\n<p>DataGrid\u306e\u30ab\u30e9\u30e0\u3092\u3001DataGridHyperlinkColumn \u3068\u3057\u3001\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">&lt;DataGrid ItemsSource=&quot;{Binding Items}&quot;&gt;\r\n    &lt;DataGrid.Columns&gt;\r\n        &lt;DataGridHyperlinkColumn Header=&quot;URL&quot; Binding=&quot;{Binding Url}&quot;&gt;\r\n            &lt;DataGridHyperlinkColumn.ElementStyle&gt;\r\n                &lt;Style&gt;\r\n                    &lt;EventSetter Event=&quot;Hyperlink.Click&quot; Handler=&quot;Hyperlink_Click&quot;\/&gt;\r\n                &lt;\/Style&gt;\r\n            &lt;\/DataGridHyperlinkColumn.ElementStyle&gt;\r\n        &lt;\/DataGridHyperlinkColumn&gt;\r\n&lt;\/DataGrid&gt;<\/pre>\n<p>\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u306e\u51e6\u7406\u3092\u8a18\u8ff0\u3059\u308b\u3002<\/p>\n<pre class=\"prettyprint linenums\">\/\/\/\r\n\/\/\/ \u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3057\u305f\u3068\u304d\u306e\u51e6\u7406\r\n\/\/\/\r\nprivate void Hyperlink_Click(object sender, RoutedEventArgs e)\r\n{\r\n    try\r\n    {\r\n        Hyperlink link = (Hyperlink)e.OriginalSource;\r\n        Process.Start(link.NavigateUri.AbsoluteUri);\r\n    }\r\n    catch (Exception) { }\r\n}<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>[WPF Tips] WPF \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4f5c\u6210\u3067\u5f97\u305fTips\u3092\u30e1\u30e2\u3002 1.\u72b6\u6cc1 DataGrid \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30bb\u30eb\u306b\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u3092\u914d\u7f6e\u3057\u305f\u3044\u3002 2.\u5bfe\u5fdc 3.\u53c2\u8003 Using WPF DataGridHyperL [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[93],"tags":[],"class_list":["post-481","post","type-post","status-publish","format-standard","hentry","category-wpf"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=481"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/481\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}