{"id":5034,"date":"2014-09-26T20:14:53","date_gmt":"2014-09-26T11:14:53","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5034"},"modified":"2014-09-26T20:49:19","modified_gmt":"2014-09-26T11:49:19","slug":"%e3%83%9e%e3%82%a6%e3%82%b9%e3%82%aa%e3%83%bc%e3%83%90%e3%83%bc%e3%81%99%e3%82%8b%e3%81%a8%e8%89%b2%e3%81%8c%e5%a4%89%e3%82%8f%e3%82%8b%e3%83%9c%e3%82%bf%e3%83%b3-windows-netwpf","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=5034","title":{"rendered":"\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3067\u8272\u304c\u5909\u308f\u308b\u30dc\u30bf\u30f3 (Windows\/.NET\/WPF)"},"content":{"rendered":"<p>HTML + CSS \u3060\u3068\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3067\u8272\u304c\u5909\u308f\u308b\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u308f\u305a\u3068\u3082 CSS \u3060\u3051\u3067\u66f8\u3051\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u305d\u308c\u3068\u540c\u69d8\u306e\u3053\u3068\u3092 WPF \u3067\u3084\u308b\u8a71\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u3061\u306a\u307f\u306b HTML + CSS \u306e\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<blockquote>\n<pre>a:link  { color: blue; }\r\na:hover { color: red; }<\/pre>\n<\/blockquote>\n<p>\u4ed6\u306b\u3082 a:visited \u3068\u304b a:active \u3068\u304b\u3042\u308b\u3060\u308d\u3046\u3051\u3069\u6c17\u306b\u3057\u306a\u3044\u3002<\/p>\n<p>\u3055\u3066\u672c\u984c\u3002<\/p>\n<p>\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u81ea\u8eab\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u5143\u306b\u4ed6\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u7b49\u3092\u5909\u66f4\u3059\u308b\u306b\u306f <a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/system.windows.trigger%28v=vs.110%29.aspx\">Trigger<\/a> \u3068\u3044\u3046\u3082\u306e\u3092\u4f7f\u3044\u307e\u3059\u3002\u305f\u3060\u3057\u3001<a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/system.windows.frameworkelement.triggers%28v=vs.110%29.aspx\">Button \u30af\u30e9\u30b9\u306e\uff08\u3088\u308a\u6b63\u78ba\u306b\u306f FrameworkElement \u30af\u30e9\u30b9\u306e\uff09 Triggers \u30d7\u30ed\u30d1\u30c6\u30a3<\/a>\u306b\u6307\u5b9a\u3067\u304d\u308b\u306e\u306f EventTrigger \u3060\u3051\u306a\u306e\u3067\u3001\u30b9\u30bf\u30a4\u30eb\u3084\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7d4c\u7531\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\uff08EventTrigger \u3067\u3082\u66f8\u3051\u306a\u3044\u3053\u3068\u306f\u306a\u3044\u3051\u3069 Trigger \u3092\u4f7f\u3063\u305f\u65b9\u304c\u7c21\u6f54\uff09\u3002\u7d50\u679c\u3068\u3057\u3066\u3053\u3093\u306a\u611f\u3058\u3002<\/p>\n<blockquote>\n<pre>&lt;Window x:Class=\"MouseOverButtonTest.MainWindow\"\r\n        xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\r\n        xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\r\n        Title=\"MainWindow\" Height=\"128\" Width=\"192\">\r\n    &lt;StackPanel VerticalAlignment=\"Center\">\r\n        &lt;Button Content=\"Button\">\r\n            &lt;Button.Style>\r\n                &lt;Style TargetType=\"Button\">\r\n                    &lt;Style.Triggers>\r\n                        <strong>&lt;Trigger Property=\"IsMouseOver\" Value=\"True\"><\/strong>\r\n                            <strong>&lt;Setter Property=\"Foreground\" Value=\"Red\"\/><\/strong>\r\n                        <strong>&lt;\/Trigger><\/strong>\r\n                    &lt;\/Style.Triggers>\r\n                &lt;\/Style>\r\n            &lt;\/Button.Style>\r\n        &lt;\/Button>\r\n    &lt;\/StackPanel>\r\n&lt;\/Window>\r\n<\/pre>\n<\/blockquote>\n<p><a href=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2014\/09\/MouseOverButton.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/umezawa.dyndns.info\/wordpress\/wp-content\/uploads\/2014\/09\/MouseOverButton.png\" alt=\"\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3067\u8272\u304c\u5909\u308f\u308b\u30dc\u30bf\u30f3\" width=\"192\" height=\"256\" class=\"alignnone size-full wp-image-5045\" \/><\/a><\/p>\n<p>\u306a\u304a\u3001\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3057\u3066\u3044\u306a\u3044\u6642\u306e\u8272\u3092\u5225\u9014\u6307\u5b9a\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u30b9\u30bf\u30a4\u30eb\u306e\u4e2d\u306b Setter \u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Button \u8981\u7d20\u306e\u5c5e\u6027\u3068\u3057\u3066\u66f8\u3044\u3066\u3057\u307e\u3046\u3068\u3001\u30b9\u30bf\u30a4\u30eb\u306b\u66f8\u3044\u305f\u30c8\u30ea\u30ac\u30fc\u3067\u8d77\u52d5\u3055\u308c\u308b\u5f53\u8a72\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u5bfe\u3059\u308b Setter \u306f\u52b9\u304b\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<blockquote>\n<pre>&lt;Window x:Class=\"MouseOverButtonTest.MainWindow\"\r\n        xmlns=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\/presentation\"\r\n        xmlns:x=\"http:\/\/schemas.microsoft.com\/winfx\/2006\/xaml\"\r\n        Title=\"MainWindow\" Height=\"128\" Width=\"192\">\r\n    &lt;StackPanel VerticalAlignment=\"Center\">\r\n        &lt;!-- \u3053\u3063\u3061\u306f\u610f\u56f3\u3057\u305f\u7d50\u679c\u306b\u306a\u3089\u306a\u3044 -->\r\n        &lt;Button Content=\"Bad!!\" <strong>Foreground=\"Blue\"<\/strong>>\r\n            &lt;Button.Style>\r\n                &lt;Style TargetType=\"Button\">\r\n                    &lt;Style.Triggers>\r\n                        &lt;Trigger Property=\"IsMouseOver\" Value=\"True\">\r\n                            &lt;Setter Property=\"Foreground\" Value=\"Red\"\/>\r\n                        &lt;\/Trigger>\r\n                    &lt;\/Style.Triggers>\r\n                &lt;\/Style>\r\n            &lt;\/Button.Style>\r\n        &lt;\/Button>\r\n        \r\n        &lt;!-- \u3053\u3063\u3061\u306fOK -->\r\n        &lt;Button Content=\"Good!!\">\r\n            &lt;Button.Style>\r\n                &lt;Style TargetType=\"Button\">\r\n                    <strong>&lt;Setter Property=\"Foreground\" Value=\"Blue\"\/><\/strong>\r\n                    &lt;Style.Triggers>\r\n                        &lt;Trigger Property=\"IsMouseOver\" Value=\"True\">\r\n                            &lt;Setter Property=\"Foreground\" Value=\"Red\"\/>\r\n                        &lt;\/Trigger>\r\n                    &lt;\/Style.Triggers>\r\n                &lt;\/Style>\r\n            &lt;\/Button.Style>\r\n        &lt;\/Button>\r\n    &lt;\/StackPanel>\r\n&lt;\/Window><\/pre>\n<\/blockquote>\n<p>\u3082\u3061\u308d\u3093\u3001\u4f9d\u5b58\u95a2\u4fc2\u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u3042\u308c\u3070\u4f55\u3067\u3082\u5909\u66f4\u53ef\u80fd\u306a\u308f\u3051\u3067\u3001\u5909\u66f4\u3059\u308b\u30d7\u30ed\u30d1\u30c6\u30a3\u3068\u3057\u3066 Opacity \u3092\u6307\u5b9a\u3059\u308b\u3068\u3001\u5e73\u5e38\u6642\u306f\u900f\u660e\u3067\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3059\u308b\u3068\u898b\u3048\u308b\u3088\u3046\u306b\u306a\u308b\u30dc\u30bf\u30f3\u3068\u304b\u4f5c\u308c\u307e\u3059\uff08\u79c1\u304c\u5143\u3005\u3053\u308c\u3092\u8abf\u3079\u3066\u3044\u308b\u3068\u304d\u306b\u3084\u308a\u305f\u304b\u3063\u305f\u306e\u306f\u3053\u308c\uff09\u3002\u305f\u3060\u3053\u308c\u3001\u30de\u30a6\u30b9\u3092\u4f7f\u308f\u305a\u30ad\u30fc\u30dc\u30fc\u30c9\u3060\u3051\u3067\u30dc\u30bf\u30f3\u3092\u64cd\u4f5c\u3059\u308b\u5834\u5408\u306f\u900f\u660e\u306a\u307e\u307e\u306b\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u3082\u3046\u3061\u3087\u3063\u3068\u8003\u3048\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML + CSS \u3060\u3068\u30de\u30a6\u30b9\u30aa\u30fc\u30d0\u30fc\u3067\u8272\u304c\u5909\u308f\u308b\u30cf\u30a4\u30d1\u30fc\u30ea\u30f3\u30af\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f7f\u308f\u305a\u3068\u3082 CSS \u3060\u3051\u3067\u66f8\u3051\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u305d\u308c\u3068\u540c\u69d8\u306e\u3053\u3068\u3092 WPF \u3067\u3084\u308b\u8a71\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-5034","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5034","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5034"}],"version-history":[{"count":15,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5034\/revisions"}],"predecessor-version":[{"id":5050,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/5034\/revisions\/5050"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5034"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5034"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5034"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}