{"id":5788,"date":"2014-04-16T01:52:01","date_gmt":"2014-04-15T16:52:01","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=5788"},"modified":"2014-04-16T01:52:01","modified_gmt":"2014-04-15T16:52:01","slug":"windows-phone-8-1-%e3%81%a8-xamarin-iosandroid-%e3%81%a7-pcl-%e3%82%92%e4%bd%bf%e3%81%86%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/5788","title":{"rendered":"Windows Phone 8.1 \u3068 Xamarin.iOS\/Android \u3067 PCL \u3092\u4f7f\u3046\u65b9\u6cd5"},"content":{"rendered":"<p><a href=\"https:\/\/github.com\/moonmile\/XamarinXmlSerialize\">moonmile\/XamarinXmlSerialize<\/a> \u306a\u3068\u3053\u308d\u306e\u8aac\u660e\u3092\u5c11\u3057\u3002\u624b\u5143\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u7df4\u7fd2\u7528\u306b\u4f5c\u3063\u305f\u3082\u306e\u3067\u3059\u304c\u3001\u3064\u3044\u3067\u306b\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u30a2\u30d7\u30ea\u306b\u3092\u8ffd\u52a0\u3057\u3066 Xamarin.iOS\/Android \u304b\u3089 PCL \u3092\u53c2\u7167\u3055\u305b\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image36.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image_thumb36.png\" width=\"354\" height=\"296\"><\/a><\/p>\n<p>\u3053\u3093\u306a\u98a8\u306a\u3001\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u308b\u3068\u3053\u308d\u3067<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image37.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image_thumb37.png\" width=\"385\" height=\"379\"><\/a><\/p>\n<p>\u3053\u3093\u306a\u98a8\u306a PCL \u3092\u4f5c\u308a\u307e\u3059\u3002\u666e\u901a\u306b\u4f5c\u308b\u3068 Windows Phone 8.1 \u3068 Xamarin.iOS\/Android \u306e\u4e21\u65b9\u306f\u30c1\u30a7\u30c3\u30af\u3067\u304d\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u3044\u305a\u308c\u300c\u3067\u304d\u308b\u300d\u3060\u308d\u3046\u3063\u3066\u3053\u3068\u3067\u5148\u53d6\u308a\u3057\u307e\u3059\u3002<\/p>\n<p>\u65b9\u6cd5\u306f\u7c21\u5358\u3067\u3059\u3002\u4ee5\u524d\u3084\u3063\u3066\u307f\u305f <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/5592\">PCL \u306e\u30bf\u30fc\u30b2\u30c3\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b Xamarin \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u305b\u305a\u306b Xamarin.Android \u3092\u8ffd\u52a0\u3059\u308b | Moonmile Solutions Blog<\/a> \u306e\u65b9\u6cd5\u3092\u4f7f\u3044\u307e\u3059\u3002PCL \u306e\u53c2\u7167\u8a2d\u5b9a\u306e\u300c.NET\u300d\u3092\u9078\u629e\u3057\u3066\u30d7\u30ed\u30d1\u30c6\u30a3\u30a6\u30a3\u30f3\u30c9\u30a6\u3092\u898b\u308b\u3068\u3001\u30d1\u30b9\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image38.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image_thumb38.png\" width=\"399\" height=\"271\"><\/a><\/p>\n<p>C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETPortable\\v4.5\\Profile\\Profile111<\/p>\n<p>\u3053\u306e\u30d1\u30b9\u3092\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3067\u958b\u3044\u3066\u3001SupportedFrameworks \u30d5\u30a9\u30eb\u30c0\u306b Xamarin.iOS.xml \u3068 Xamarin.Android.xml \u3092\u30b3\u30d4\u30fc\u3059\u308b\u3060\u3051\u3067\u3059\u3002\u3053\u306e2\u3064\u306e\u30d5\u30a1\u30a4\u30eb\u306f Profile7 \u3042\u305f\u308a\u306b\u3042\u308a\u307e\u3059\u3002Profile111 \u306f\u3001\u4eca\u56de\u306e VS2013 Update 2 RC \u3067\u3067\u304d\u305f\u30d5\u30a9\u30eb\u30c0\u3067\u3001\u307e\u3060 Xamarin.iOS\/Android \u304c\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3060\u3051\uff08\u3068\u601d\u308f\u308c\u308b\uff09\u3067\u3059\u3002\u5c06\u6765\u7684\u306b\u306f\u5bfe\u5fdc\u3055\u308c\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image39.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image_thumb39.png\" width=\"640\" height=\"411\"><\/a><\/p>\n<p>\u305d\u3046\u3059\u308b\u3068\u3001Xamarin.iOS\/Android \u304b\u3089 PCL \u3092\u53c2\u7167\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3067\u3001Windows Phone 8.1 \u3068\u3082\u5171\u6709\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u5148\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u306f\u3001\u3082\u3046\u5c11\u3057\u624b\u3092\u5165\u308c\u3066\u3044\u3066\u3001Shared \u30d5\u30a9\u30eb\u30c0\u306b BasicMain.xaml \u306e\u30b3\u30fc\u30c9\u30d3\u30cf\u30a4\u30f3\u30c9\u3092\u5206\u96e2\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image40.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image_thumb40.png\" width=\"405\" height=\"371\"><\/a><\/p>\n<p>\u3053\u3093\u306a\u98a8\u306b\u3001partial \u306b\u3057\u3066\u304a\u3044\u3066\u3001\u30dc\u30bf\u30f3\u30a4\u30d9\u30f3\u30c8\u3060\u3051\u3092\u3053\u3063\u3061\u306e\u5171\u6709\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u66f8\u304d\u51fa\u3057\u307e\u3059\u3002Windows \u30b9\u30c8\u30a2\u3068 Windows Phone \u306e xaml \u306b\u306f\u3001\u300cClick=&#8221;ClickLoad&#8221;\u300d\u306e\u3088\u3046\u306b\u30a4\u30d9\u30f3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b\u306e\u3067\u3001\u8907\u6570\u306e\u30d3\u30e5\u30fc\u3068\u30b3\u30fc\u30c9\u30d3\u30cf\u30a4\u30c9\u304c\u3046\u307e\u304f\u5206\u96e2\u3067\u304d\u307e\u3059\u306d\u3001\u3068\u3044\u3046\u65b9\u6cd5\u3067\u3059\u3002\u8003\u3048\u3066\u307f\u305f\u3089\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u30ea\u30f3\u30af\u306e\u8ffd\u52a0\u3067\u3082\u3067\u304d\u305f\u8a71\u306a\u306e\u3067\u3059\u304c\u3001\u307e\u3042\u5171\u6709\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u307b\u3046\u304c\u52b9\u679c\u7684\u304b\u3068\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image41.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top: 0px; border-right: 0px; background-image: none; border-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; border-left: 0px; display: inline; padding-right: 0px\" border=\"0\" alt=\"image\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/04\/image_thumb41.png\" width=\"624\" height=\"398\"><\/a><\/p>\n<p>\u3067\u3001\u5171\u6709\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306f\u73fe\u5728\u3001Windows \u30b9\u30c8\u30a2\u3068 Windows Phone \u306b\u3057\u304b\u51fa\u3066\u304d\u307e\u305b\u3093\u304c\u3001<a href=\"http:\/\/www.moonmile.net\/blog\/archives\/5696\">\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u30a2\u30d7\u30ea\u3067\u4f7f\u3063\u3066\u3044\u308bShared\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092Xamarin.iOS\u3067\u4f7f\u3046 | Moonmile Solutions Blog<\/a> \u306a\u65b9\u6cd5\u3092\u4f7f\u3046\u3068\u3001Xamarin.iOS\/Android \u304b\u3089\u3082\u4f7f\u3048\u307e\u3059\u3002\u3053\u308c\u3082\u5148\u884c\u304d\u306f Xamarin \u3067\u5bfe\u5fdc\u3055\u308c\u308b\u3067\u3057\u3087\u3046\u3002\u3068\u306a\u308b\u3068\u3001\u30e1\u30bd\u30c3\u30c9\u540d\u3068\u5f15\u6570\u306e\u4e26\u3073\u304c\u540c\u3058\u3067\u3042\u308c\u3070\u3044\u3044\u308f\u3051\u3067\u3001\u3046\u307e\u304f\u3084\u308b\u3068\u3001iOS \u306e Storyboard \u3068 Android \u306e axml \u3068\u5171\u6709\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff08MvvmCross \u3067\u3082\u3046\u307e\u304f\u3044\u304f\u304b\u3082\uff09\u3002<\/p>\n<p>Android \u306e\u5834\u5408\u306f\u3001\u300cvoid ClickLoad(object sender, EventArgs e)\u300d\u3068\u306a\u308b\u306e\u3067\u5f15\u6570\u306e\u578b\u304c EventArgs \u306e\u578b\u3060\u3051\u7570\u306a\u308a\u307e\u3059\u3002iOS \u306e\u5834\u5408\u306f IBAction \u306e\u95a2\u4fc2\u304b\u3089\u300cpartial void clickCalc(MonoTouch.Foundation.NSObject sender)\u300d\u3068\u306a\u308b\u306e\u3067\u3001\u5f15\u6570\u306e\u578b\u304c\u5168\u304f\u9055\u3044\u307e\u3059\u3002\u307e\u3042\u3001#if \u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3067\u533a\u5207\u308c\u3070\u3044\u3044\u306e\u3067\u3059\u304c\u3001\u3044\u3061\u3044\u3061 #if \u3067\u5206\u5c90\u3055\u305b\u308b\u306e\u3082\u9762\u5012\u3067\u3059\u3088\u306d\u3002C\/C++ \u306a\u3089\u3070 #define \u30de\u30af\u30ed\u3067\u9003\u308c\u308b\u3068\u3053\u308d\u3067\u3059\u304c\u3001C# \u3060\u3068\u305d\u308c\u3082\u3067\u304d\u306a\u3044\u3002VB6 \u306e\u9803\u306e\u3088\u3046\u306b\u30dc\u30bf\u30f3\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u304b\u3089\u3001\u5225\u306e\u30af\u30e9\u30b9\u3042\u308b\u3044\u306fCOM\u3092\u9010\u4e00\u547c\u3073\u51fa\u3059\u3088\u3046\u540d\u306a\u5f62\u306b\u306f\u3057\u305f\u304f\u306a\u3044\u3002\u3053\u306e\u3042\u305f\u308a\u306f\u3061\u3087\u3063\u3068\u8003\u3048\u3069\u3053\u308d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>moonmile\/XamarinXmlSerialize \u306a\u3068\u3053\u308d\u306e\u8aac\u660e\u3092\u5c11\u3057\u3002\u624b\u5143\u306e\u30b7\u30ea\u30a2\u30e9\u30a4\u30b6\u7df4\u7fd2\u7528\u306b\u4f5c\u3063\u305f\u3082\u306e\u3067\u3059\u304c\u3001\u3064\u3044\u3067\u306b\u30e6\u30cb\u30d0\u30fc\u30b5\u30eb\u30a2\u30d7\u30ea\u306b\u3092\u8ffd\u52a0\u3057\u3066 Xamarin.iOS\/Android \u304b\u3089 PCL \u3092 &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/5788\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[52,62],"tags":[],"class_list":["post-5788","post","type-post","status-publish","format-standard","hentry","category-winrt","category-xamarin"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5788","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=5788"}],"version-history":[{"count":0,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5788\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=5788"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=5788"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=5788"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}