{"id":172,"date":"2010-05-01T22:49:28","date_gmt":"2010-05-01T13:49:28","guid":{"rendered":"http:\/\/astel-labs.net\/blog\/diary\/2010\/05\/100501-1.html"},"modified":"2012-03-31T19:33:14","modified_gmt":"2012-03-31T10:33:14","slug":"100501-1","status":"publish","type":"post","link":"https:\/\/astel-labs.net\/blog\/diary\/2010\/05\/100501-1.html","title":{"rendered":"WPF\u3092\u4f7f\u3063\u3066\u3001Windows7\u306e\u30bf\u30b9\u30af\u30d0\u30fc\u30dc\u30bf\u30f3\u306e\u30d7\u30ed\u30b0\u30ec\u30b9\u8868\u793a"},"content":{"rendered":"<p><a href=\"http:\/\/astel-labs.net\/blog\/diary\/wp-content\/tools\/FileDownload.zip\">FileDownload.zip<\/a>Windows7\u3067\u306f\u3001IE\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u969b\u306a\u3069\u306b\u3001\u30bf\u30b9\u30af\u30d0\u30fc\u30dc\u30bf\u30f3\u306b\u9032\u6357\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/p>\n<p><a href=\"http:\/\/astel-labs.net\/blog\/diary\/images\/2010\/05\/taskbar01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-260\" title=\"taskbar01\" src=\"http:\/\/astel-labs.net\/blog\/diary\/images\/2010\/05\/taskbar01.jpg\" alt=\"\" width=\"206\" height=\"50\" \/><\/a><br \/>\n\u2191\u3053\u3093\u306a\u611f\u3058<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u306f.net framework4 \u3067WPF\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u7c21\u5358\u306b\u5b9f\u88c5\u3067\u304d\u307e\u3059<\/p>\n<p>\u4eca\u56de\u306f\u3001\u3053\u306e\u5b9f\u88c5\u65b9\u6cd5\u3092\u30d5\u30a1\u30a4\u30eb\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30c4\u30fc\u30eb\u306e\u4f5c\u6210\u3092\u3057\u306a\u304c\u3089\u8aac\u660e\u3057\u307e\u3059<br \/>\n\uff08\u3068\u3044\u3063\u3066\u3082\u3001\u3053\u306e\u51e6\u7406\u306f\u6570\u884c\u3067\u5b9f\u88c5\u3067\u304d\u308b\u306e\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u30c4\u30fc\u30eb\u3092\u4f5c\u3063\u305f\u6642\u306b\u306a\u3093\u3068\u306a\u304f\u5165\u308c\u3066\u307f\u305f\u30b5\u30f3\u30d7\u30eb\u3067\u3059\uff09<\/p>\n<p><!--more--><\/p>\n<p>&nbsp;<\/p>\n<p>\u4f5c\u6210\u3057\u305f\u30c4\u30fc\u30eb\u306f\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u308a\u307e\u3059<\/p>\n<p><a href=\"http:\/\/astel-labs.net\/blog\/diary\/images\/2010\/05\/downloadtool.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-261\" title=\"downloadtool\" src=\"http:\/\/astel-labs.net\/blog\/diary\/images\/2010\/05\/downloadtool-300x156.jpg\" alt=\"\" width=\"300\" height=\"156\" srcset=\"https:\/\/astel-labs.net\/blog\/diary\/images\/2010\/05\/downloadtool-300x156.jpg 300w, https:\/\/astel-labs.net\/blog\/diary\/images\/2010\/05\/downloadtool.jpg 410w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>DownloadUrl \u306b\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u306eURL\u3092\u6307\u5b9a\u3057\u307e\u3059<br \/>\n\u4f8b\uff09\u300chttp:\/\/astel-labs.net\/tools\/FileDownload.zip\u300d<br \/>\nFileName \u306b\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u969b\u306b\u4ed8\u3051\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u79f0\u3092\u6307\u5b9a\u3057\u307e\u3059<br \/>\n\u4f8b\uff09\u300cFileDownload.zip\u300d<\/p>\n<p>\u3053\u306e\u30c4\u30fc\u30eb\u306f\u8aac\u660e\u7528\u306b\u7c21\u5358\u306b\u4f5c\u6210\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u6700\u521d\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30e1\u30bf\u60c5\u5831\u53d6\u5f97\u6642\u306b\u30d5\u30ea\u30fc\u30ba\u3057\u305f\u3088\u3046\u306a\u52d5\u304d\u3092\u3057\u307e\u3059\u304c\u3001\u305d\u306e\u8fba\u304c\u6c17\u306b\u306a\u308b\u3088\u3046\u3067\u3057\u305f\u3089\u6539\u9020\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044<\/p>\n<p>&nbsp;<\/p>\n<p>\u30c4\u30fc\u30eb\u306e\u7d30\u304b\u3044\u8aac\u660e\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u898b\u3066\u3082\u3089\u3046\u3068\u3057\u3066\u3001<br \/>\n\u30bf\u30b9\u30af\u30d0\u30fc\u30dc\u30bf\u30f3\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059<\/p>\n<pre class=\"brush: csharp\">using System.Windows.Shell;\r\n\r\nnamespace FileDownload\r\n{\r\n    \/\/\/ &lt;SUMMARY&gt;\r\n    \/\/\/ MainWindow.xaml \u306e\u76f8\u4e92\u4f5c\u7528\u30ed\u30b8\u30c3\u30af\r\n    \/\/\/ &lt;\/SUMMARY&gt;\r\n    public partial class MainWindow : Window\r\n    {\r\n        public MainWindow()\r\n        {\r\n            InitializeComponent();\r\n\r\n            \/\/ Windows7\u306e\u30bf\u30b9\u30af\u30d0\u30fc\u30dc\u30bf\u30f3\u306e\u30d7\u30ed\u30b0\u30ec\u30b9\u8868\u793a\u7528\r\n            this.TaskbarItemInfo = new TaskbarItemInfo()\r\n            {\r\n                ProgressState = TaskbarItemProgressState.Normal,\r\n                ProgressValue = 0\r\n            };\r\n            \/\/this.TaskbarItemInfo.ProgressState = TaskbarItemProgressState.Normal;\r\n            \/\/this.TaskbarItemInfo.ProgressValue = 0; \/\/ \u521d\u671f\u5024\u30920\u306b\u3059\u308b\r\n        }\r\n\r\n        public void ProgressChanged( int ProgressPercentage )\r\n        {\r\n            \/\/ \u30bf\u30b9\u30af\u30d0\u30fc\u30dc\u30bf\u30f3\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u72b6\u6cc1\u3092\u8868\u793a\uff080.0\uff5e1.0\u306e\u7bc4\u56f2\u3067\u8a2d\u5b9a\uff09\r\n            this.TaskbarItemInfo.ProgressValue = (double)ProgressPercentage \/ 100.0;\r\n        }\r\n    }\r\n}<\/pre>\n<p>\u3053\u308c\u3060\u3051\u3067\u30bf\u30b9\u30af\u30dc\u30bf\u30f3\u306b\u30d7\u30ed\u30b0\u30ec\u30b9\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/p>\n<p>\u57fa\u672c\u306f\u300cSystem.Windows.Window\u300d\u30af\u30e9\u30b9\u306e TaskbarItemInfo \u30d1\u30e9\u30e1\u30fc\u30bf\u306b\u300cSystem.Windows.Shell.TaskbarItemInfo\u300d\u30af\u30e9\u30b9\u306e ProgressValue \u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8a2d\u5b9a\u3059\u308b\u3060\u3051\u3067\u3059<\/p>\n<p>ProgressValue \u30d1\u30e9\u30e1\u30fc\u30bf\u306f0.0\uff5e1.0\u306e\u7bc4\u56f2\u3092double\u578b\u3067\u6307\u5b9a\u3057\u307e\u3059<\/p>\n<p>&nbsp;<\/p>\n<p>\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb<br \/>\n\u30fb<a href=\"http:\/\/astel-labs.net\/blog\/diary\/images\/2010\/05\/FileDownload.zip\" rel=\"_RAclick\">FileDownload<\/a>\u3000\uff08 VisualStudio2010\u3001.net framework4 \uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>FileDownload.zipWindows7\u3067\u306f\u3001IE\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u969b\u306a\u3069\u306b\u3001\u30bf\u30b9\u30af\u30d0\u30fc\u30dc\u30bf\u30f3\u306b\u9032\u6357\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059 \u2191\u3053\u3093\u306a\u611f\u3058 &nbsp; \u3053\u308c\u306f.net framework4 \u3067WPF\u3092 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7,4],"tags":[],"class_list":["post-172","post","type-post","status-publish","format-standard","hentry","category-c","category-wpf","category-4"],"_links":{"self":[{"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts\/172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/comments?post=172"}],"version-history":[{"count":13,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts\/172\/revisions"}],"predecessor-version":[{"id":211,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/posts\/172\/revisions\/211"}],"wp:attachment":[{"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/media?parent=172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/categories?post=172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/astel-labs.net\/blog\/diary\/wp-json\/wp\/v2\/tags?post=172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}