{"id":511,"date":"2017-08-06T01:29:14","date_gmt":"2017-08-05T16:29:14","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2017\/08\/06\/uwp_1\/"},"modified":"2017-08-06T01:29:14","modified_gmt":"2017-08-05T16:29:14","slug":"uwp_1","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/06\/uwp_1\/","title":{"rendered":"UWP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u9759\u7684\u306a\u8a2d\u5b9a\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u8a18\u8ff0\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><a href=\"https:\/\/www.amazon.co.jp\/%E3%83%A6%E3%83%8B%E3%83%90%E3%83%BC%E3%82%B5%E3%83%ABWindows%E3%82%A2%E3%83%97%E3%83%AA%E9%96%8B%E7%99%BA-ThinkIT-Books-%E8%96%AC%E5%B8%AB%E5%AF%BA-%E5%9B%BD%E5%AE%89-ebook\/dp\/B00SXPVK12\/ref=as_li_ss_il?_encoding=UTF8&amp;pd_rd_i=B00SXPVK12&amp;pd_rd_r=9360ZBDD5DJATK2TR2Q8&amp;pd_rd_w=XTdZ8&amp;pd_rd_wg=GltiK&amp;psc=1&amp;refRID=9360ZBDD5DJATK2TR2Q8&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=f09870a02af37879105138ea0bc29831\" target=\"_blank\"><img decoding=\"async\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=B00SXPVK12&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\" border=\"0\"><\/a><img loading=\"lazy\" decoding=\"async\" width=\"1\" height=\"1\" style=\"margin: 0px !important; border: currentcolor !important; border-image: none !important;\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=B00SXPVK12\" border=\"0\"><\/p>\n<p>\u2191\u30aa\u30f3\u30c7\u30de\u30f3\u30c9\uff1f\u3069\u3046\u3044\u3046\u8ca9\u58f2\u5f62\u614b\uff1f\u6ce8\u6587\u5f8c\u306b\u88fd\u672c\u3059\u308b\u306e\u304b\uff1f\u8457\u8005\u306e\u7d4c\u6b74\u306b\u306f\u5171\u611f\u3002<\/p>\n<p>UWP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3001\u4f8b\u3048\u3070\u3001\u30b7\u30b9\u30c6\u30e0\u8a2d\u5b9a\u5024\u306a\u3069\u3092\u4fdd\u5b58\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u306e\u304b\u3001\u307e\u305f\u3001Web\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306a\u3069\u3001Github\u306a\u3069\u306b\u4e0a\u3052\u305f\u304f\u306a\u3044\u8a2d\u5b9a\u3092\u3069\u3046\u7ba1\u7406\u3059\u308c\u3070\u3088\u3044\u306e\u304b\uff1f\u6570\u6642\u9593\u60a9\u3093\u3060\u7d50\u8ad6\u3002<\/p>\n<h2>1.Properties\u3084App.config \u307f\u305f\u3044\u306a\u3053\u3068\u3092UWP\u3067\u3084\u308a\u305f\u3044<\/h2>\n<p>Visual Studio 2015 \u306e WPF\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u3001<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/UWP_91B\/uwp_settings02.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"396\" height=\"162\" title=\"uwp_settings02\" style=\"display: inline; background-image: none;\" alt=\"uwp_settings02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/UWP_91B\/uwp_settings02_thumb.jpg\" border=\"0\"><\/a><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u5024\u3092GUI\u304b\u3089\u7de8\u96c6\u3067\u304d\u3066\u3001<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/UWP_91B\/uwp_settings01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"394\" height=\"158\" title=\"uwp_settings01\" style=\"display: inline; background-image: none;\" alt=\"uwp_settings01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/UWP_91B\/uwp_settings01_thumb.jpg\" border=\"0\"><\/a><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067\u3001\u5024\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089\u5229\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u4fbf\u5229\u3060\u3063\u305f\u3002<\/p>\n<pre class=\"prettyprint linenums\">int sleep = Properties.Settings.Default.AccessSleepMilliSeconds;<\/pre>\n<h2>2.UWP\u3067\u306f\u3067\u304d\u306a\u3055\u305d\u3046<\/h2>\n<p>\u4e0a\u8a18\u306e\u3088\u3046\u306b\u3001Properties\u304c\u3001\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u3088\u3046\u306a\u6a5f\u80fd\u306f VisualStudion2017 \uff0b UWP \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u306f\u3067\u304d\u306a\u3055\u305d\u3046\u3060\u3002\u3002\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8a2d\u5b9a\u81ea\u4f53\u306b\u3064\u3044\u3066\u306f\u3001\u4ee5\u4e0b\u306b\u8a73\u3057\u3044<\/p>\n<p><a title=\"https:\/\/docs.microsoft.com\/ja-jp\/windows\/uwp\/app-settings\/store-and-retrieve-app-data\" href=\"https:\/\/docs.microsoft.com\/ja-jp\/windows\/uwp\/app-settings\/store-and-retrieve-app-data\">https:\/\/docs.microsoft.com\/ja-jp\/windows\/uwp\/app-settings\/store-and-retrieve-app-data<\/a><\/p>\n<p>\u304c\u3001\u3084\u308a\u305f\u3044\u3053\u3068\u3068\u306f\u3061\u3087\u3063\u3068\u9055\u3046\u3001<a href=\"https:\/\/stackoverflow.com\/questions\/34803648\/configurationmanager-and-appsettings-in-universal-uwp-app\">ConfigurationManager \u3082 UWP\u3067\u306f\u4f7f\u3048\u306a\u3055\u305d\u3046\u3060\u3002\u3002\u3002<\/a><\/p>\n<h2>3.\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb \uff0b \u81ea\u4f5c<\/h2>\n<p>\u3046\u30fc\u3093\u3001<a href=\"https:\/\/docs.microsoft.com\/ja-jp\/windows\/uwp\/app-settings\/store-and-retrieve-app-data\">\u4e0a\u306e\u30ea\u30f3\u30af<\/a>\u306b\u3042\u308b\u65b9\u6cd5\u3067\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u307f\u8f9e\u66f8\u3092\u4f5c\u308b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u304b\uff01\uff1f<\/p>\n<p><a title=\"https:\/\/docs.microsoft.com\/en-us\/windows\/uwp\/files\/quickstart-reading-and-writing-files\" href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/uwp\/files\/quickstart-reading-and-writing-files\">https:\/\/docs.microsoft.com\/en-us\/windows\/uwp\/files\/quickstart-reading-and-writing-files<\/a><\/p>\n<pre class=\"prettyprint linenums\">var uri = new System.Uri(\"ms-appx:\/\/\/Assets\/.password.txt\");\r\nvar file = await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(uri);\r\nstring text = await Windows.Storage.FileIO.ReadTextAsync(file);\r\nSystem.Diagnostics.Debug.WriteLine(text);\r\n<\/pre>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001Assets\u30d5\u30a9\u30eb\u30c0\u306b\u914d\u7f6e\u3057\u305f.password.txt \u30d5\u30a1\u30a4\u30eb\u306f\u8aad\u307f\u3060\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<h2>4.\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u3059\u308b<\/h2>\n<p>\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3060\u304c\u3001<a href=\"https:\/\/stackoverflow.com\/questions\/34803648\/configurationmanager-and-appsettings-in-universal-uwp-app\">\u4e0a\u8a18Stackoverflow<\/a> \u306b\u56de\u7b54\u3055\u308c\u3066\u3044\u308b\u3001\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u306e\u3084\u308a\u65b9\u304c\u3088\u3055\u305d\u3046\u3002<\/p>\n<p><a title=\"http:\/\/amadeusw.com\/iot\/custom-resource-files-in-uwp-windows-10\" href=\"http:\/\/amadeusw.com\/iot\/custom-resource-files-in-uwp-windows-10\">http:\/\/amadeusw.com\/iot\/custom-resource-files-in-uwp-windows-10<\/a><\/p>\n<h3>4.1 \u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0<\/h3>\n<p>WPF\u306e\u6642\u306b\u5408\u308f\u305b\u3066\u3001Properties\u306e\u4e0b\u306b\u3001\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u3059\u308b<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/UWP_91B\/uwp_settings03.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"336\" height=\"194\" title=\"uwp_settings03\" style=\"display: inline; background-image: none;\" alt=\"uwp_settings03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/UWP_91B\/uwp_settings03_thumb.jpg\" border=\"0\"><\/a><\/p>\n<p>WPF\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u3088\u3046\u306b\u30c7\u30fc\u30bf\u578b\u307e\u3067\u306f\u6307\u5b9a\u3067\u304d\u306a\u3044\u304c\u3001\u3068\u308a\u3042\u3048\u305a\u3001KEY\u3068\u5024\u306e\u30da\u30a2\u3092GUI\u304b\u3089\u767b\u9332\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/UWP_91B\/uwp_settings04.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"432\" height=\"167\" title=\"uwp_settings04\" style=\"display: inline; background-image: none;\" alt=\"uwp_settings04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/UWP_91B\/uwp_settings04_thumb.jpg\" border=\"0\"><\/a><\/p>\n<p>\u30b3\u30fc\u30c9\u304b\u3089\u3082\u3001\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u3066\u3001\u30ea\u30bd\u30fc\u30b9\u30ed\u30fc\u30c0\u30fc\u3092\u751f\u6210\u3001KEY\u3092\u6307\u5b9a\u3057\u3066\u5024\u3092\u53d6\u5f97\u3067\u304d\u305f\uff01<\/p>\n<pre class=\"prettyprint linenums\">var settings = Windows.ApplicationModel.Resources.ResourceLoader.GetForCurrentView(\".passwords\");\r\nvar tag = settings.GetString(\"ASSOCIATE_TAG\");\r\nDebug.WriteLine(tag);\r\n<\/pre>\n<p>\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u3068\u4f8b\u5916\u304c\u3067\u308b\u3060\u3051\u306a\u306e\u3067\u3001\u3053\u306e\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3092\u3061\u3083\u3093\u3068\u3057\u305f\u3046\u3048\u3067\u3001\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u3092 .gitignore \u306b\u8ffd\u52a0\u3059\u308c\u3070\u3088\u3055\u305d\u3046\u3060\u3002<\/p>\n<p>WPF\u3067\u306e\u3001\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4fbf\u5229\u3060\u3063\u305f\u3051\u3069\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u542b\u3081\u3001CS\u30d5\u30a1\u30a4\u30eb\u306b\u5c55\u958b\u3055\u308c\u3066\u3044\u305f\u304b\u304c\u3001\u30ea\u30bd\u30fc\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u5358\u306a\u308bXML\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u53c2\u7167\u6642\u3082\u540d\u79f0\u3067\u53d6\u5f97\u3057\u306b\u884c\u304f\u306e\u3067\u3001\u5b58\u5728\u3057\u306a\u304f\u3066\u3082\u30d3\u30eb\u30c9\u306b\u306f\u5f71\u97ff\u3057\u306a\u3044\u3060\u308d\u3046\u3002<\/p>\n<p>\u307e\u3060\u3001UWP\u306f\u3001WPF\u306b\u304f\u3089\u3079\u3066\u60c5\u5831\u304c\u5c11\u306a\u3044\u306a\u3001\u3001\u3001<\/p>\n<p>\u3053\u306e\u30a2\u30eb\u30d0\u30e0\u306f\u304b\u3063\u3053\u3088\u3059\u304e\u308b\u3002<\/p>\n<p><\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/PARAGRAPH-ASPARAGUS\/dp\/B006O2AKW6\/ref=as_li_ss_il?ie=UTF8&amp;qid=1501950212&amp;sr=8-1&amp;keywords=paragraph+asparagus&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=6631553fc7c702bf3801fb027f846bcc\" target=\"_blank\"><img decoding=\"async\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=B006O2AKW6&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\" border=\"0\"><\/a><img loading=\"lazy\" decoding=\"async\" width=\"1\" height=\"1\" style=\"margin: 0px !important; border: currentcolor !important; border-image: none !important !important;\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=B006O2AKW6\" border=\"0\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2191\u30aa\u30f3\u30c7\u30de\u30f3\u30c9\uff1f\u3069\u3046\u3044\u3046\u8ca9\u58f2\u5f62\u614b\uff1f\u6ce8\u6587\u5f8c\u306b\u88fd\u672c\u3059\u308b\u306e\u304b\uff1f\u8457\u8005\u306e\u7d4c\u6b74\u306b\u306f\u5171\u611f\u3002 UWP\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3001\u4f8b\u3048\u3070\u3001\u30b7\u30b9\u30c6\u30e0\u8a2d\u5b9a\u5024\u306a\u3069\u3092\u4fdd\u5b58\u3059\u308b\u306b\u306f\u3069\u3046\u3059\u308c\u3070\u3088\u3044\u306e\u304b\u3001\u307e\u305f\u3001Web\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u30a2\u30af\u30bb\u30b9\u30c8\u30fc\u30af\u30f3\u306a\u3069\u3001Githu [&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":[84],"tags":[],"class_list":["post-511","post","type-post","status-publish","format-standard","hentry","category-universal-windows-platform"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/511","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=511"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/511\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}