{"id":3361,"date":"2016-04-16T20:07:07","date_gmt":"2016-04-16T11:07:07","guid":{"rendered":"http:\/\/denasu.com\/blog\/?p=3361"},"modified":"2016-04-23T20:46:25","modified_gmt":"2016-04-23T11:46:25","slug":"analog-book-reader-uwp","status":"publish","type":"post","link":"https:\/\/denasu.com\/blog\/2016\/04\/diary3361","title":{"rendered":"Analog Book Reader UWP"},"content":{"rendered":"<p>Weather Typing 3\u306e\u4f5c\u696d\u304c\u4e00\u6bb5\u843d\u306a\u306e\u3067\uff0c\u4ee5\u524d\u304b\u3089\u3084\u308a\u305f\u304b\u3063\u305fAnalog Book Reader\u306eUniversal Windows Platform\u5bfe\u5fdc\u3092\u691c\u8a0e\u3002UWP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u3066\u65e2\u5b58\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\uff0c\u30d3\u30eb\u30c9\u3057\u76f4\u3059\u3068\u3053\u308d\u307e\u3067\u306f\u30b5\u30af\u30b5\u30af\u3067\u304d\u305f\u304c\uff0c\u52d5\u304b\u3057\u3066\u307f\u308b\u3068\u3044\u308d\u3044\u308d\u304a\u304b\u3057\u306a\u3068\u3053\u308d\u304c\u3042\u308b\u3002<\/p>\n<ul>\n<li>\u623b\u308b\u30dc\u30bf\u30f3\u304c\u52d5\u304b\u306a\u3044<\/li>\n<li>\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u5d29\u308c\u308b<\/li>\n<li>Semantic zoom\u304c\u30de\u30a6\u30b9\u3067\u3067\u304d\u306a\u3044<\/li>\n<li>ScrollViewer\u306e\u30ba\u30fc\u30e0\u304c\u30de\u30a6\u30b9\u3067\u3067\u304d\u306a\u3044<\/li>\n<li>GridView\u3067\u53f3\u30af\u30ea\u30c3\u30af\u9078\u629e\u3067\u304d\u306a\u3044<\/li>\n<li>\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u304c\u3067\u304d\u306a\u3044<\/li>\n<li>\u30c1\u30e3\u30fc\u30e0\u304c\u306a\u3044<\/li>\n<\/ul>\n<hr>\n<p>\u623b\u308b\u30dc\u30bf\u30f3\u306b\u3064\u3044\u3066\u306f\u81ea\u5206\u3067\u30dc\u30bf\u30f3\u3092\u4ed8\u3051\u308b\u306e\u3067\u306f\u306a\u304f\u30bf\u30a4\u30c8\u30eb\u30d0\u30fc\u306b\u4ed8\u3051\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u3002\u78ba\u304b\u306bWindows 10\u306e\u30a2\u30d7\u30ea\u306f\u305d\u3046\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3067OK\u3002<\/p>\n<pre class=\"brush:csharp\">\r\nvar view = SystemNavigationManager.GetForCurrentView();\r\nview.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible;\r\nview.BackRequested += OnBackRequested;\r\n<\/pre>\n<hr>\n<p>\u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u307e\u3042\u4ed5\u65b9\u306a\u3044\u306e\u3067\u5730\u9053\u306b\u76f4\u305d\u3046\u3002<\/p>\n<hr>\n<p>Semantic zoom\u306b\u95a2\u3057\u3066\u306fMS\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3082\u3067\u304d\u306a\u3044\u3057\uff0c\u6a19\u6e96\u306e\u6642\u8a08\u30a2\u30d7\u30ea\u3082\u30ba\u30fc\u30e0\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3002MS\u3068\u3057\u3066\u306f\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u3057\u3088\u3046\u3068\u3057\u3066\u308b\u306e\u304b\u306a\u3042\u3002<\/p>\n<p>\u8ffd\u8a18\u3002\u3068\u601d\u3063\u3066\u3082\u3046\u5c11\u3057\u8abf\u3079\u305f\u3089\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3067\u304d\u305f\u3002\u4e0b\u306eScrollViewer\u3068\u540c\u3058\u3067\uff0cZoomMode\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u30db\u30a4\u30fc\u30eb\u30ba\u30fc\u30e0\u304c\u4f7f\u3048\u306a\u3044\u3002<\/p>\n<pre class=\"brush:csharp\">\r\n<SemanticZoom ScrollViewer.ZoomMode=\"Enabled\"\/>\r\n<\/pre>\n<hr>\n<p>ScrollViewer\u306e\u30ba\u30fc\u30e0\u306fScrollViewer.ZoomMode\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002Windows 8\u3067\u3082\u3042\u3063\u305f\u3088\u3046\u3060\u3051\u3069\uff0c\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u9055\u3046\u306e\u304b\u306a\u3002<\/p>\n<hr>\n<p>GridView\u3067\u53f3\u30af\u30ea\u30c3\u30af\u9078\u629e\u3067\u304d\u306a\u3044\u306e\u306f\u4e00\u756a\u56f0\u308b\u306e\u3060\u304c\uff0cWindows 8.1\u3067\u306f\uff0c\u53f3\u30af\u30ea\u30c3\u30af\u3067\u9078\u629e\uff0c\u5de6\u30af\u30ea\u30c3\u30af\u3067\u958b\u304f\u3068\u3044\u3046\u52d5\u4f5c\u304c\u3067\u304d\u305f\u3051\u3069\uff0c<a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/windows\/apps\/xaml\/hh780625.aspx\">Windows 10\u3067\u306f\u3069\u3061\u3089\u304b\u306e\u52d5\u4f5c\u3057\u304b\u3067\u304d\u306a\u3044\u3002<\/a><\/p>\n<p>\u30db\u30f3\u30c8\uff1f\u3000\u3068\u601d\u3063\u3066Windows 10\u306e\u30b9\u30bf\u30fc\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u8a66\u3057\u305f\u3089\u78ba\u304b\u306b\u9078\u629e\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3002\u8907\u6570\u306e\u30bf\u30a4\u30eb\u3092\u79fb\u52d5\u3057\u305f\u304f\u306a\u3063\u3066\u30821\u3064\u305a\u3064\u30c9\u30e9\u30c3\u30b0\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304b\u3002\u305a\u3063\u3068\u3053\u306e\u4ed5\u69d8\u3067\u3044\u304f\u306e\u304b\u306a\u3002\u30bf\u30d6\u30ec\u30c3\u30c8\u3067\u3082Swipe\u9078\u629e\u304c\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u30fb\u30fb\u30fb\u3002<\/p>\n<hr>\n<p>\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u304c\u3067\u304d\u306a\u3044\u306e\u306fWindows 10\u3067\u5897\u3048\u305f\u30d7\u30ed\u30d1\u30c6\u30a3DragEventArgs.AcceptedOperation \u306bDragOver\u304b\u3089\u8a2d\u5b9a\u3057\u3066\u3084\u308c\u3070OK\u3002\u3064\u3044\u3067\u306b<\/p>\n<pre class=\"brush:csharp\">\r\nif (e.DataView.Contains(StandardDataFormats.StorageItems))\r\n{\r\n    var storage = await e.DataView.GetStorageItemsAsync();\r\n}\r\n<\/pre>\n<p>\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u307e\u3055\u306b\u3053\u308c\u304c\u3084\u308a\u305f\u304f\u3066UWP\u306b\u79fb\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3046\u307e\u304f\u3044\u3063\u3066\u3088\u304b\u3063\u305f\u3002<\/p>\n<hr>\n<p>\u30c1\u30e3\u30fc\u30e0\u306f\uff0c\u3069\u3046\u3084\u308b\u306e\u304c\u6b63\u3057\u3044\u306e\u3060\u308d\u3046\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u3092\u3069\u3053\u3067\u51fa\u3059\u306e\u304b\uff1f\u3000\u3068\u3044\u3046\u3053\u3068\u3060\u3051\u3069\uff0c\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3084\u308b\u306e\u304b\u306a\u3002\u672a\u8abf\u67fb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Weather Typing 3\u306e\u4f5c\u696d\u304c\u4e00\u6bb5\u843d\u306a\u306e\u3067\uff0c\u4ee5\u524d\u304b\u3089\u3084\u308a\u305f\u304b\u3063\u305fAnalog Book Reader\u306eUniversal Windows Platform\u5bfe\u5fdc\u3092\u691c\u8a0e\u3002UWP\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u3063\u3066\u65e2\u5b58\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\uff0c\u30d3\u30eb\u30c9\u3057\u76f4\u3059\u3068\u3053\u308d\u307e\u3067\u306f\u30b5\u30af\u30b5\u30af\u3067\u304d\u305f\u304c\uff0c\u52d5\u304b\u3057\u3066\u307f\u308b\u3068\u3044\u308d\u3044\u308d\u304a\u304b\u3057\u306a\u3068\u3053\u308d\u304c\u3042\u308b\u3002 \u623b\u308b\u30dc\u30bf\u30f3\u304c\u52d5\u304b\u306a\u3044 \u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u30ec\u30a4\u30a2\u30a6\u30c8\u304c\u5d29\u308c\u308b Semantic zoom\u304c\u30de\u30a6\u30b9\u3067\u3067\u304d\u306a\u3044 ScrollViewer\u306e\u30ba\u30fc\u30e0\u304c\u30de\u30a6\u30b9\u3067\u3067\u304d\u306a\u3044 GridView\u3067\u53f3\u30af\u30ea\u30c3\u30af\u9078\u629e\u3067\u304d\u306a\u3044 \u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u304c\u3067\u304d\u306a\u3044 \u30c1\u30e3\u30fc\u30e0\u304c\u306a\u3044 \u623b\u308b\u30dc\u30bf\u30f3\u306b\u3064\u3044\u3066\u306f\u81ea\u5206\u3067\u30dc\u30bf\u30f3\u3092\u4ed8\u3051\u308b\u306e\u3067\u306f\u306a\u304f\u30bf\u30a4\u30c8\u30eb\u30d0\u30fc\u306b\u4ed8\u3051\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u305f\u3002\u78ba\u304b\u306bWindows 10\u306e\u30a2\u30d7\u30ea\u306f\u305d\u3046\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u305d\u308c\u3067OK\u3002 var view = SystemNavigationManager.GetForCurrentView(); view.AppViewBackButtonVisibility = AppViewBackButtonVisibility.Visible; view.BackRequested += OnBackRequested; \u30ec\u30a4\u30a2\u30a6\u30c8\u306f\u307e\u3042\u4ed5\u65b9\u306a\u3044\u306e\u3067\u5730\u9053\u306b\u76f4\u305d\u3046\u3002 Semantic zoom\u306b\u95a2\u3057\u3066\u306fMS\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3082\u3067\u304d\u306a\u3044\u3057\uff0c\u6a19\u6e96\u306e\u6642\u8a08\u30a2\u30d7\u30ea\u3082\u30ba\u30fc\u30e0\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3002MS\u3068\u3057\u3066\u306f\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u3057\u3088\u3046\u3068\u3057\u3066\u308b\u306e\u304b\u306a\u3042\u3002 \u8ffd\u8a18\u3002\u3068\u601d\u3063\u3066\u3082\u3046\u5c11\u3057\u8abf\u3079\u305f\u3089\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3067\u3067\u304d\u305f\u3002\u4e0b\u306eScrollViewer\u3068\u540c\u3058\u3067\uff0cZoomMode\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u30db\u30a4\u30fc\u30eb\u30ba\u30fc\u30e0\u304c\u4f7f\u3048\u306a\u3044\u3002 ScrollViewer\u306e\u30ba\u30fc\u30e0\u306fScrollViewer.ZoomMode\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002Windows 8\u3067\u3082\u3042\u3063\u305f\u3088\u3046\u3060\u3051\u3069\uff0c\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u9055\u3046\u306e\u304b\u306a\u3002 GridView\u3067\u53f3\u30af\u30ea\u30c3\u30af\u9078\u629e\u3067\u304d\u306a\u3044\u306e\u306f\u4e00\u756a\u56f0\u308b\u306e\u3060\u304c\uff0cWindows 8.1\u3067\u306f\uff0c\u53f3\u30af\u30ea\u30c3\u30af\u3067\u9078\u629e\uff0c\u5de6\u30af\u30ea\u30c3\u30af\u3067\u958b\u304f\u3068\u3044\u3046\u52d5\u4f5c\u304c\u3067\u304d\u305f\u3051\u3069\uff0cWindows 10\u3067\u306f\u3069\u3061\u3089\u304b\u306e\u52d5\u4f5c\u3057\u304b\u3067\u304d\u306a\u3044\u3002 \u30db\u30f3\u30c8\uff1f\u3000\u3068\u601d\u3063\u3066Windows 10\u306e\u30b9\u30bf\u30fc\u30c8\u30e1\u30cb\u30e5\u30fc\u3092\u8a66\u3057\u305f\u3089\u78ba\u304b\u306b\u9078\u629e\u304c\u3067\u304d\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3002\u8907\u6570\u306e\u30bf\u30a4\u30eb\u3092\u79fb\u52d5\u3057\u305f\u304f\u306a\u3063\u3066\u30821\u3064\u305a\u3064\u30c9\u30e9\u30c3\u30b0\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u306e\u304b\u3002\u305a\u3063\u3068\u3053\u306e\u4ed5\u69d8\u3067\u3044\u304f\u306e\u304b\u306a\u3002\u30bf\u30d6\u30ec\u30c3\u30c8\u3067\u3082Swipe\u9078\u629e\u304c\u306a\u304f\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u306a\u30fb\u30fb\u30fb\u3002 \u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u304c\u3067\u304d\u306a\u3044\u306e\u306fWindows 10\u3067\u5897\u3048\u305f\u30d7\u30ed\u30d1\u30c6\u30a3DragEventArgs.AcceptedOperation \u306bDragOver\u304b\u3089\u8a2d\u5b9a\u3057\u3066\u3084\u308c\u3070OK\u3002\u3064\u3044\u3067\u306b if (e.DataView.Contains(StandardDataFormats.StorageItems)) { var storage = await e.DataView.GetStorageItemsAsync(); } \u3067\u30d5\u30a1\u30a4\u30eb\u306e\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u3002\u307e\u3055\u306b\u3053\u308c\u304c\u3084\u308a\u305f\u304f\u3066UWP\u306b\u79fb\u884c\u3057\u3066\u3044\u308b\u306e\u3067\u3046\u307e\u304f\u3044\u3063\u3066\u3088\u304b\u3063\u305f\u3002 \u30c1\u30e3\u30fc\u30e0\u306f\uff0c\u3069\u3046\u3084\u308b\u306e\u304c\u6b63\u3057\u3044\u306e\u3060\u308d\u3046\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u3092\u3069\u3053\u3067\u51fa\u3059\u306e\u304b\uff1f\u3000\u3068\u3044\u3046\u3053\u3068\u3060\u3051\u3069\uff0c\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u3084\u308b\u306e\u304b\u306a\u3002\u672a\u8abf\u67fb\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2,3],"tags":[6,40,11],"class_list":["post-3361","post","type-post","status-publish","format-standard","hentry","category-programming","category-computer","tag-analogbookreader","tag-uwp","tag-winrt"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4ZThs-Sd","_links":{"self":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/3361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/comments?post=3361"}],"version-history":[{"count":7,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/3361\/revisions"}],"predecessor-version":[{"id":3373,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/posts\/3361\/revisions\/3373"}],"wp:attachment":[{"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/media?parent=3361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/categories?post=3361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/denasu.com\/blog\/wp-json\/wp\/v2\/tags?post=3361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}