{"id":73615,"date":"2019-10-01T09:47:04","date_gmt":"2019-10-01T00:47:04","guid":{"rendered":"https:\/\/www.softantenna.com\/wp\/?p=73615"},"modified":"2019-10-01T09:47:04","modified_gmt":"2019-10-01T00:47:04","slug":"windows-10-winrt-api-pack","status":"publish","type":"post","link":"https:\/\/softantenna.com\/blog\/windows-10-winrt-api-pack\/","title":{"rendered":"Windows 10 WinRT API Pack\u304c\u30ea\u30ea\u30fc\u30b9 - WPF\u3084WinForms\u3067WinRT\u30c6\u30af\u30ce\u30ed\u30b8\u304c\u5229\u7528\u53ef\u80fd\u306b"},"content":{"rendered":"<p><img decoding=\"async\" style=\"display:block; margin-left:auto; margin-right:auto;\" src=\"https:\/\/softantenna.com\/blog\/wp-content\/uploads\/2019\/10\/s_20191001_93411.jpg\" alt=\"S 20191001 93411\" title=\"s_20191001_93411.jpg\" border=\"0\" width=\"860\" height=\"560\" \/><\/p>\n<p>Microsoft\u306f9\u670830\u65e5(\u73fe\u5730\u6642\u9593)\u3001<a href=\"https:\/\/www.nuget.org\/packages\/Microsoft.Windows.SDK.Contracts\/\">Windows 10 WinRT API Pack<\/a>\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u3053\u3068\u3092<a href=\"https:\/\/blogs.windows.com\/windowsdeveloper\/2019\/09\/30\/windows-10-winrt-api-packs-released\/#rhrKtWsw5apQoh4s.97\">\u767a\u8868<\/a>\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>Windows 10 WinRT API Pack\u306f\u3001Geolocation\u3001Windows AI\u3001Machine Learning\u3001Bluetooth\u3001XAML\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306a\u3069\u3001\u3053\u308c\u307e\u3067WinRT(UWP\u542b\u3080)\u306b\u72ec\u5360\u7684\u306b\u63d0\u4f9b\u3055\u308c\u3066\u304d\u305f\u6280\u8853\u3092WPF\u3084WinForms\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u7c21\u5358\u306b\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>NuGet\u3092\u5229\u7528\u3057\u3066\u5c0e\u5165\u53ef\u80fd\u3067\u3001Windows 10 version 1803\/1809\/1903\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5177\u4f53\u7684\u306bVisual Studio\u3067\u4f7f\u7528\u3059\u308b\u624b\u9806\u3084\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3082\u3001Microsoft\u306e<a href=\"https:\/\/blogs.windows.com\/windowsdeveloper\/2019\/09\/30\/windows-10-winrt-api-packs-released\/#rhrKtWsw5apQoh4s.97\">\u30d6\u30ed\u30b0<\/a>\u306b\u63b2\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre>private async void Button_Click(object sender, RoutedEventArgs e)\n{\n\u202f\u202f\u202f\u202fvar locator = new Windows.Devices.Geolocation.Geolocator();\n\u202f\u202f\u202f\u202fvar location = await locator.GetGeopositionAsync();\n\u202f\u202f\u202f\u202fvar position = location.Coordinate.Point.Position;\n\u202f\u202f\u202f\u202fvar latlong = string.Format(\"lat:{0}, long:{1}\", position.Latitude, position.Longitude);\n\u202f\u202f\u202f\u202fvar result = MessageBox.Show(latlong);\n}<\/pre>\n<p>\u4e0a\u8a18\u30b3\u30fc\u30c9\u306fWPF\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u3067\u3001\u7d4c\u5ea6\u3068\u7def\u5ea6\u3092\u8868\u793a\u3059\u308b\u3082\u306e\u3068\u306e\u3053\u3068\u3002UWP\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092WPF\u3084WinForms\u3067\u4f7f\u7528\u3059\u308b\u305f\u3081\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3082<a href=\"https:\/\/github.com\/windows-toolkit\/Microsoft.Toolkit.Win32\">GitHub<\/a>\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft\u306f9\u670830\u65e5(\u73fe\u5730\u6642\u9593)\u3001Windows 10 WinRT API Pack\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u3053\u3068\u3092\u767a\u8868\u3057\u307e\u3057\u305f\u3002 Windows 10 WinRT API Pack\u306f\u3001Geolocation\u3001Window [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":73616,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[3,13],"tags":[3298],"class_list":["post-73615","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","category-etc","tag-windows"],"_links":{"self":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/73615","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/comments?post=73615"}],"version-history":[{"count":0,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/posts\/73615\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media\/73616"}],"wp:attachment":[{"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/media?parent=73615"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/categories?post=73615"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softantenna.com\/blog\/wp-json\/wp\/v2\/tags?post=73615"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}