{"id":6770,"date":"2014-12-18T00:04:07","date_gmt":"2014-12-17T15:04:07","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=6770"},"modified":"2014-12-18T00:05:38","modified_gmt":"2014-12-17T15:05:38","slug":"xaml-%e3%81%af-microsoft-%e3%81%a0%e3%81%91%e3%81%ae%e3%83%a2%e3%83%8e%e3%81%98%e3%82%83%e3%81%aa%e3%81%84%e3%81%ae%e3%81%a7%e3%80%81%e5%8b%95%e7%9a%84%e3%81%ab%e3%83%ad%e3%83%bc%e3%83%89%e3%81%a7","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/6770","title":{"rendered":"XAML \u306f Microsoft \u3060\u3051\u306e\u30e2\u30ce\u3058\u3083\u306a\u3044\u306e\u3067\u3001\u52d5\u7684\u306b\u30ed\u30fc\u30c9\u3067\u304d\u308b\u3088\u3068\u3044\u3046\u8a71"},"content":{"rendered":"<p>XAML Advent Calendar 2014 \u2013 Qiita<br \/>\n<a href=\"http:\/\/qiita.com\/advent-calendar\/2014\/xaml\">http:\/\/qiita.com\/advent-calendar\/2014\/xaml<\/a><\/p>\n<p>XAML \u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306e 18 \u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u52d5\u7684\u306b XAML \u3092\u30ed\u30fc\u30c9\u3057\u3066\u8868\u793a\u3059\u308b\u3001\u3068\u3044\u3046\u30cd\u30bf\u3092\u8003\u3048\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u3068\u3001\u305d\u306e\u524d\u306b XAML \u3063\u3066\u4f55\uff1f\u3063\u3066\u306e\u3092\u66f8\u304d\u6b8b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u3061\u3087\u3063\u3068\u524d\u306b Xamarin \u30ab\u30f3\u30d5\u30a1\u30ec\u30f3\u30b9\u3067 <a href=\"http:\/\/www.slideshare.net\/moonmile\/xamarinforms-41882310\">Xamarin.forms\u3068\u30ab\u30b9\u30bf\u30e0\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u8a71<\/a> \u3063\u3066\u306e\u3092\u8a71\u3057\u307e\u3057\u305f\u3002Xamarin.Forms \u304c\u6271\u3046\u3082\u306e\u304c XAML \u306a\u3089\u3070\u3001\u305d\u3082\u305d\u3082 XAML \u3068\u306f\u4f55\u304b\uff1f\u3063\u3066\u3068\u3053\u308d\u3092\u7a81\u304d\u6b62\u3081\u3066\u307f\u307e\u3059\u3002\u5b9f\u306f\u3001SPEC \u304c\u3042\u3063\u3066\u3001<a href=\"http:\/\/go.microsoft.com\/fwlink\/?LinkId=114525\">MS-XAML<\/a>(PDF) \u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304c\u3067\u304d\u307e\u3059\u3002\u305d\u3046\u3067\u3059\u3002XAML \u306e\u4ed5\u69d8\u3063\u3066\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u60c5\u5831\u306a\u306e\u3067\u3059\u3002\u306a\u306e\u3067 C# \u3068\u304b ECMAScript \u306e\u3088\u3046\u306b\u8ab0\u3067\u3082\u5b9f\u88c5\u3067\u304d\u308b\u4ed5\u69d8\u306a\u3093\u3067\u3059\u306d\u3002\u8ab0\u3067\u3082\u4f5c\u308c\u308b\u3068\u3044\u3046\u3053\u3068\u306f\u3001XAML \u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u308b\u306e\u306f WPF \u3084 WinStore \u3060\u3051\u3067\u306a\u304f\u3001Xamarin.Forms \u3067\u3082\u3088\u3044\u3057\u3001Linux \u4e0a\u306e mono \u3067\u3082\u3088\u3044\u308f\u3051\u3067\u3059\u3002\u540d\u524d\u7a7a\u9593\u3068\u3057\u3066\u306f System.Xaml \u304c\u5272\u308a\u5f53\u3066\u3089\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u5185\u5b9f\u306f\u8af8\u3005\u306a\u30a2\u30bb\u30f3\u30d6\u30ea\u304c\u4f5c\u3089\u308c\u3066\u3044\u307e\u3059\u3002WPF \u304c System.Xaml \u3092\u4f7f\u3063\u3066\u3044\u308b\u3088\u3046\u306b WinStore \u304c System.Xaml \u3092\u4f7f\u3048\u3070\u3088\u304b\u3063\u305f\u306e\u3067\u3057\u3087\u3046\u304c\u3001WinRT \u306e\u95a2\u4fc2\u304b\u4f7f\u3063\u3066\u3044\u307e\u305b\u3093\uff08\u4f7f\u3048\u306a\u3044\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\uff09\u3002\u305d\u306e\u3042\u305f\u308a\u306f Sliverlight \u3082\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001MS-XAML \u3068\u3057\u3066\u4ed5\u69d8\u306f\u516c\u958b\u3055\u308c\u7d71\u4e00\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u306e\u3001\u5b9f\u88c5\u306f\u305d\u308c\u305e\u308c\u306b\u3042\u308b\u3068\u3044\u3046\u5909\u306a\u72b6\u614b\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u2026\u304c\u3001\u300c\u4ed5\u69d8\u300d\u304c\u6c7a\u307e\u3063\u3066\u3044\u308b\u304b\u3089\u3001\u305d\u306e\u300c\u4ed5\u69d8\u300d\u306b\u3042\u308f\u305b\u3066\u5b9f\u88c5\u3057\u3066\u3044\u3051\u3070\u3001\u4ed6\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\uff08\u3042\u308b\u3044\u306f\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\uff09\u3067\u3082\u4f3c\u305f\u611f\u3058\u3067\u4f7f\u3048\u308b\u3001\u3068\u3044\u3046\u300c\u4fdd\u8a3c\u300d\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001\u5177\u4f53\u7684\u306b\u3069\u3046\u3044\u3046\u70b9\u3067 XAML \u304c XML \u3088\u308a\u3082\u5f37\u5316\u3055\u308c\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u3068\uff08\u898b\u305f\u76ee\u306f XML \u306a\u306e\u3060\u304b\u3089\u3001XDocument \u3060\u3051\u3067\u6271\u3046\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\uff09\u3001\u5148\u306e MS-XAML \u306e\u30b9\u30da\u30c3\u30af\u3092\u898b\u3066\u3044\u304f\u3068\u3001<\/p>\n<ul>\n<li>x:Class \u3067\u7279\u5b9a\u306e\u30af\u30e9\u30b9\u3068\u7d50\u3073\u3064\u3051\u308b<\/li>\n<li>x:Name \u3067\u30af\u30e9\u30b9\u5185\u306e\u30d5\u30a3\u30fc\u30eb\u30c9\u3068\u7d50\u3073\u3064\u3051\u308b<\/li>\n<li>\u540d\u524d=\u201d{Binding \u30d7\u30ed\u30d1\u30c6\u30a3\u540d}\u201d \u3067\u3001\u6307\u5b9a\u3057\u305f\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u7d50\u3073\u4ed8\u3051\u308b<\/li>\n<li>Grid.Row \u306e\u3088\u3046\u306a\u30c9\u30c3\u30c8\u4ed8\u304d\u306e\u30bf\u30b0\u540d\u304c\u7279\u5225\u6271\u3044\u306b\u306a\u3063\u3066\u3044\u308b<\/li>\n<\/ul>\n<p>\u304c\u898f\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002XAML \u3068\u540d\u4e57\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u4ed5\u69d8\u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u3001\u9006\u306b XAML \u3092\u540d\u4e57\u308b\u306a\u3089\u3070\u3001\u3053\u306e\u4ed5\u69d8\u3092\u5b9f\u88c5\u3057\u306a\u3051\u308c\u3070\u3044\u3051\u307e\u305b\u3093\u3002\u307e\u305f\u3001XAML \u3092\u5229\u7528\u3059\u308b\u5074\u304b\u3089\u307f\u308c\u3070\u3001\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306b\u4f9d\u5b58\u305b\u305a\u306b\u4e0a\u8a18\u306e\u4ed5\u7d44\u307f\u304c\u5229\u7528\u3067\u304d\u308b\u3068\u3044\u3046\u8a33\u3067\u3059\u3002\u3064\u307e\u308a\u3001WPF \u306e XAML \u3067\u3042\u3063\u3066\u3082 WinStore \u306e XAML \u3067\u3042\u3063\u3066\u3082\u3001Silverlight \u306e XAML \u3067\u3042\u3063\u3066\u3082\u3001Xamarin.Forms \u306e XAML \u3067\u3042\u3063\u3066\u3082\u3001\u4e0a\u8a18\u306e\u66f8\u304d\u65b9\uff08\u30af\u30e9\u30b9\u3001\u30d5\u30a3\u30fc\u30eb\u30c9\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u3078\u306e\u30d0\u30a4\u30f3\u30c9\uff09\u306f\u540c\u3058\u306b\u306a\u308b\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306f\u3001\u7279\u5b9a\u306e\u30af\u30e9\u30b9\u3078\u306e\u30d0\u30a4\u30f3\u30c9\u304c XAML \u5185\u306b\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u9069\u5f53\u306a\u30a2\u30bb\u30f3\u30d6\u30ea\u304c\u30ed\u30fc\u30c9\u3055\u308c\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\u3064\u307e\u308a\u3001\u30c6\u30ad\u30b9\u30c8\u5f62\u5f0f\u3068\u3057\u3066\u306e XAML \u30d5\u30a1\u30a4\u30eb\u3092\u305d\u308c\u305e\u308c\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\uff08Windows, iOS, Android, Linux \u306e OS \u306b\u9650\u3089\u305a\u3001\u3042\u308b\u3044\u306f\u3001Java \u3084 Objective-C \u306e\u8a00\u8a9e\u3092\u554f\u308f\u305a\uff09\u306b\u6301\u3063\u3066\u884c\u3063\u3066\u3001\u9069\u5f53\u306a\u30a2\u30bb\u30f3\u30d6\u30ea\uff08\u3042\u308b\u3044\u306f\u30e9\u30a4\u30d6\u30e9\u30ea\uff09\u3092\u30ed\u30fc\u30c9\u3057\u3066\u3084\u3063\u3066\u3001\u30a2\u30bb\u30f3\u30d6\u30ea\u5185\u306b\u3042\u308b\u30af\u30e9\u30b9\u3084\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u7d50\u3073\u4ed8\u3051\u308b\uff08\u666e\u901a\u306f\u30ea\u30d5\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\uff09\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3088\u3001\u3063\u3066\u8a71\u306a\u306e\u3067\u3059\u3002<\/p>\n<p>\u307e\u3042\u3001\u5b9f\u969b\u306e\u3068\u3053\u308d\u306f\u3001XAML \u3092\u30c7\u30fc\u30bf\u3068\u3057\u3066\u6271\u3063\u3066\u3044\u308b\u306e\u306f Windows Workflow Foundation \u3050\u3089\u3044\u3057\u304b\u306a\u304f\u3066\u3001\u305d\u306e\u3042\u305f\u308a\u306e\u5e83\u304c\u308a\u306b\u95a2\u3057\u3066\u306f\u5931\u6557\u3057\u3066\u3044\u308b\u3088\u3046\u306b\u898b\u3048\u307e\u3059\u304c\u3002<\/p>\n<p>\u66f4\u306b\u8a00\u3048\u3070\u3001\u540d\u524d\u7a7a\u9593\u3068\u3057\u3066 System.Xaml \u3092\u7528\u610f\u3057\u3066\u3001\u3053\u306e\u4e2d\u306b <a href=\"http:\/\/msdn.microsoft.com\/ja-jp\/library\/system.xaml.xamlxmlreader%28v=vs.110%29.aspx\">XamlXmlReader<\/a> \u30af\u30e9\u30b9\u304c\u3042\u308b\u306e\u3060\u304b\u3089\u3001WPF \u3068\u304b WinStore \u3068\u304b Xamarin.Forms \u3068\u304b\u3001\u3053\u306e\u30af\u30e9\u30b9\u3092\u4f7f\u3063\u3066\u5b9f\u88c5\u3059\u308c\u3070\u3088\u304b\u3063\u305f\u3068\u601d\u308f\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u7686\u3070\u3089\u3070\u3089\u306e\u5b9f\u88c5\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u304a\u305d\u3089\u304f\u3001PCL \u3084\u3089 WinRT \u3084\u3089\u306e\u5236\u7d04\u304c\u3042\u3063\u3066\u3001\u305d\u308c\u305e\u308c\u3067 XAML \u3092\u30ed\u30fc\u30c9\u3059\u308b\u5b9f\u88c5\u304c\u7d44\u307f\u8fbc\u307e\u308c\u305f\u306e\u3060\u3068\u601d\u3046\u306e\u3067\u3059\u304c\u2026\u3061\u3087\u3063\u3068 SPEC \u304c\u3042\u308b\u306e\u306b\u6df7\u4e71\u3055\u305b\u904e\u304e\u306a\u611f\u3058\u304c\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b Open Source \u306b\u306a\u3063\u305f <a href=\"https:\/\/github.com\/dotnet\/corefx\/tree\/master\/src\">.NET Core<\/a> \u306b\u306f System.Xaml \u304c\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002mono \u306b\u306f System.Xaml \u304c\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u3053\u308c\u3092\u30d9\u30fc\u30b9\u306b\u3057\u3066 Linux \u3078\u306e\u62e1\u5f35\u3092\u3057\u3066\u3082\u3088\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u3001\u52d5\u7684\u306b XAML \u3092\u30ed\u30fc\u30c9\u3059\u308b\u65b9\u6cd5\u306f<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n var url = &quot;http:\/\/moonmile.net\/up\/samplepage.xaml&quot;; \r\n var cl = new HttpClient(); \r\n var xaml = await cl.GetStringAsync(new Uri(url)); \r\n var doc = XamlReader.Load(xaml) as Grid; \r\n this.Content = doc; \r\n<\/pre>\n<p>\u306a\u98a8\u306b\u7c21\u5358\u306b\u66f8\u3051\u307e\u3059\u3002\u3053\u308c\u306f HttpClient \u3067\u30b5\u30fc\u30d0\u30fc\u304b\u3089 XAML \u30c7\u30fc\u30bf\u3092\u53d6\u3063\u3066\u304d\u3066\u3044\u308b\u4f8b\u3067\u3059\u304c\u3001\u30ed\u30fc\u30ab\u30eb\u30ea\u30bd\u30fc\u30b9\u306b XAML \u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u3044\u3066\u30ed\u30fc\u30c9\u3055\u305b\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u305f\u3060\u3057\u3001XamlReader.Load \u306f\u3001x:Name \u304c\u4f7f\u3048\u306a\u304b\u3063\u305f\u308a\u3001\u30af\u30e9\u30b9\u3092\u63a2\u7d22\u3059\u308b\u306e\u304c\u81ea\u524d\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u306e\u307f\u3060\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u3061\u3087\u3063\u3068\u4f7f\u3044\u52dd\u624b\u304c\u60aa\u3044\u3067\u3059\u3002\u9006\u306b\u3001XamlXmlReader \u3092\u4f7f\u3048\u3070\u3044\u3044\u3093\u3058\u3083\u306a\u3044\u304b\u3068\u601d\u3063\u305f\u308a\u3082\u3059\u308b\u306e\u3067\u3059\u304c\u3001\u5b9f\u306f WinRT \u306e\u307b\u3046\u306b\u306f System.Xaml \u304c\u3042\u308a\u307e\u305b\u3093\u3002\u3053\u306e\u3042\u305f\u308a\u3001\u5b8c\u5168\u306b View \u3068\u3057\u3066\u5207\u308a\u66ff\u3048\u53ef\u80fd\u306a XAML \u3068\u3001\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u5148\u3068\u3057\u3066\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\uff08\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\uff09\u306f\u3001\u3082\u3046\u5c11\u3057\u716e\u8a70\u3081\u3066\u8003\u3048\u3066\u3082\u3044\u3044\u6c17\u304c\u3057\u3066\u3044\u307e\u3059\u3002\u3061\u306a\u307f\u306b\u3001\u5c11\u3005\u9813\u632b\u4e2d\u306e <a href=\"https:\/\/github.com\/moonmile\/XFormsPreviewer\">XFormsPreviewer<\/a> \u3067\u3059\u304c\u3001\u5148\u306e System.Xaml \u306b\u5247\u3063\u305f\u30b9\u30bf\u30a4\u30eb\u306b\u66f8\u304d\u76f4\u305d\u3046\u304b\u306a\u3068\u601d\u6848\u4e2d\u3067\u3059\u3002\u30c9\u30c3\u30c8\u4ed8\u304d\u30bf\u30b0\u540d\u306e\u3042\u305f\u308a\u304c\u72ec\u81ea\u51e6\u7406\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u3066\u3044\u308b\u306e\u3067\u3001mono \u306e System.Xaml \u3092\u53c2\u8003\u306b\u3059\u308b\u611f\u3058\u306b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>XAML Advent Calendar 2014 \u2013 Qiita http:\/\/qiita.com\/advent-calendar\/2014\/xaml XAML \u30a2\u30c9\u30d9\u30f3\u30c8\u30ab\u30ec\u30f3\u30c0\u30fc\u306e 18 \u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u304b &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/6770\">\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":[49],"tags":[],"class_list":["post-6770","post","type-post","status-publish","format-standard","hentry","category-xaml"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/6770","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=6770"}],"version-history":[{"count":2,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/6770\/revisions"}],"predecessor-version":[{"id":6772,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/6770\/revisions\/6772"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=6770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=6770"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=6770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}