{"id":5908,"date":"2014-06-14T23:08:22","date_gmt":"2014-06-14T14:08:22","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=5908"},"modified":"2014-06-15T11:12:02","modified_gmt":"2014-06-15T02:12:02","slug":"xamarin-forms-%e3%81%a7%e3%83%8d%e3%82%a4%e3%83%86%e3%82%a3%e3%83%96%e3%81%ae%e3%82%a4%e3%83%99%e3%83%b3%e3%83%88%e3%83%8f%e3%83%b3%e3%83%89%e3%83%a9%e3%82%92%e6%8b%be%e3%81%86windows-phone%e7%b7%a8","status":"publish","type":"post","link":"http:\/\/www.moonmile.net\/blog\/archives\/5908","title":{"rendered":"Xamarin.Forms \u3067\u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u30a4\u30d9\u30f3\u30c8\u30cf\u30f3\u30c9\u30e9\u3092\u62fe\u3046(Windows Phone\u7de8)"},"content":{"rendered":"<p>Xamarin.Forms \u3067\u306f\u30a4\u30d9\u30f3\u30c8\u7d61\u307f\u304c\u96a0\u853d\u5316\u3055\u308c\u3066\u3044\u3066\u3001\u30dc\u30bf\u30f3\u306e\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3084\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u5909\u66f4\u30a4\u30d9\u30f3\u30c8\u3050\u3089\u3044\u3057\u304b\u767a\u751f\u3057\u307e\u305b\u3093\u3002\u3053\u306e\u305f\u3081\u3001\u30d1\u30ba\u30eb\u30b2\u30fc\u30e0\u3067\u306f\u753b\u50cf\uff08Image\u30bf\u30b0\uff09\u306e\u30bf\u30c3\u30d7\u30a4\u30d9\u30f3\u30c8\u3092 <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/5892\">Xamarin.Froms \u3067\u30d1\u30ba\u30eb\u30b2\u30fc\u30e0\u3092\u4f5c\u308b(iOS\/Android\u7248) | Moonmile Solutions Blog<\/a> \u306e\u3088\u3046\u306b TapGestureRecognizer \u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\u3002\uff08\u4eca\u5f8c\u306f\u3069\u3046\u304b\u5206\u304b\u3089\u306a\u3044\u306e\u3067\u3059\u304c\uff09TapGestureRecognizer \u30af\u30e9\u30b9\u3067\u306f\u3001\u60c5\u5831\u304c\u4f55\u3082\u308f\u305f\u3063\u3066\u3053\u306a\u304f\u3066\u30bf\u30c3\u30d7\u306a\u308a\u30b9\u30ef\u30a4\u30d7\u306a\u308a\u306e\u64cd\u4f5c\u3092\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u3001\u30cd\u30a4\u30c6\u30a3\u30d6\u306a UI \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u5207\u308a\u66ff\u3048\u308b\u5fc5\u8981\u304c\u51fa\u3066\u304d\u307e\u3059\u3002\u306a\u306e\u3067\u3001\u3055\u3063\u304f\u3063\u3068\u4f5c\u308c\u305d\u3046\u306a\u30da\u30fc\u30b8\u3067\u3042\u308c\u3070 Xamarin.Forms \u3067\u3001\u8907\u96d1\u306a\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u7d44\u307f\u5408\u308f\u305b\u3067\u3042\u308c\u3070\u30cd\u30a4\u30c6\u30a3\u30d6\u3067\u3001\u3063\u3066\u3053\u3068\u306b\u306a\u308b\u3093\u3067\u3057\u3087\u3046\u304c&#8230;\u3044\u3084\u3001\u3061\u3087\u3063\u3068\u5f85\u3066\u3088\u3002\u305d\u308c\u305e\u308c\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u3001Content = TMPuzzleXForms.App.GetMainPage().ConvertPageToUIElement(this); \u306e\u3088\u3046\u306b\u3001Xamarin.Forms \u306e XAML \u304b\u3089\u5404\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3078\u306e\u30b3\u30f3\u30d0\u30fc\u30bf\u304c\u52d5\u3044\u3066\u3044\u307e\u3059\u3002Windows Phone \u306e\u5834\u5408\u306f ConvertPageToUIElement\u3001iOS \u306e\u5834\u5408\u306f CreateViewController\u00a0\u304c\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002Android \u306e\u5834\u5408\u306f SetPage \u304c\u76f4\u63a5\u547c\u3073\u51fa\u3055\u308c\u3066\u3044\u3066\u4e2d\u8eab\u304c\u4e0d\u660e\u3067\u3059\u304c\u3001\u305f\u3076\u3093\u5185\u5bb9\u306f\u4f3c\u305f\u611f\u3058\u306b\u306a\u3063\u3066\u3044\u308b\u30cf\u30ba\u3067\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001Xamarin.Forms \u88fd\u306e XAML \u304b\u3089\u3001MS \u88fd\u306e XAML \u306b\u30b3\u30f3\u30d0\u30fc\u30c8\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u793a\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u3001\u4f55\u7b49\u304b\u306e\u5f62\u3067\u5185\u90e8\u3067 Windows Phone \u7279\u6709\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u3057\u3066\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u5c11\u3057\u8abf\u3079\u3066\u3044\u3066\u3001\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u306e\u90e8\u5206\u3067 <a href=\"http:\/\/qiita.com\/amay077\/items\/8eaa595cc2fc88797b2f\">Xamarin.Forms \u306e Label \u304b\u3089 iOS \u306e UILabel \u3092\u53d6\u308a\u51fa\u3059 &#8211; Qiita<\/a> \u306e\u3088\u3046\u306b LabelRenderer \u306a\u3069\u3067\u5909\u66f4\u3067\u304d\u308b\u3053\u3068\u304c\u89e3\u308a\u307e\u3057\u305f\u3002\u66f4\u306b\u8abf\u3079\u3066\u3044\u304f\u3068\u3001\u306a\u3093\u3068\u304b Renderer \u306e\u3088\u3046\u306a\u3082\u306e\u304c\u3044\u3063\u3071\u3044\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image9.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image_thumb9.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"425\" height=\"410\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px; border: 0px;\" \/><\/a><\/p>\n<p>\u5b9f\u306f\u3001\u76f4\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f EntryRenderer \u304c none public \u306b\u306a\u3063\u3066\u3044\u3066\u624b\u304c\u51fa\u305b\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u304c\uff08iOS \u3068 Android \u306e Renderer \u306f public \u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff09\u3002\u4f55\u6545\u304b\u3001\u3064\u3044\u6700\u8fd1\u516c\u958b\u3055\u308c\u305f\u30011.1.0.6201 \u3067\u306f\u3001\u3053\u3053\u306e Renderer \u304c\u516c\u958b\u306b\u306a\u3063\u3066\u3044\u307e\u3057\u305f\u3002\u3048\u3048\u3001\u3064\u3044\u3067\u306b\u5185\u90e8\u3067\u30da\u30a2\u3067\u3082\u3063\u3066\u3044\u3066\u308b Element \u30d7\u30ed\u30d1\u30c6\u30a3\u3068 Control \u30d7\u30ed\u30d1\u30c6\u30a3\u3082 public \u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff08\u76f4\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u306f\u3001\u540d\u524d\u3059\u3089\u9055\u3063\u3066\u3044\u305f\u306e\u306f\u5185\u7dd2\u3067\u3059\uff09\u3002\u3053\u3053\u3067\u3001\u60c5\u5831\u3092\u6574\u7406\u3059\u308b\u3068\u3001<\/p>\n<ul>\n<li>Xamarin.Forms.ContentPage \u304c Xamarin.Forms \u306e XAML \u30c4\u30ea\u30fc\u3092\u6301\u3063\u3066\u3044\u308b\u3002<\/li>\n<li>ConvertPageToUIElement \u7b49\u3092\u547c\u3073\u51fa\u3059\u3068\u3001MS \u88fd\u306e XAML \u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3059\u308b\u3002<\/li>\n<li>\u540c\u6642\u306b\u3001Renderer \u3092\u542b\u3080 UIElement \u306e\u30c4\u30ea\u30fc\u3092\u4f5c\u6210\u3057\u3001Xamarin \u88fd\u3068 MS \u88fd\u306e\u5bfe\u5fdc\u3092\u30c4\u30ea\u30fc\u72b6\u306b\u3057\u3066\u4fdd\u6301\u3059\u308b\u3002<\/li>\n<li>Xamarin.Forms \u88fd\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u3001Element \u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u53d6\u5f97\u3059\u308b\u3002<\/li>\n<li>MS \u88fd\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306f\u3001Control \u30d7\u30ed\u30d1\u30c6\u30a3\u3067\u53d6\u5f97\u3059\u308b\u3002<\/li>\n<\/ul>\n<p>\u306e\u3088\u3046\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u304a\u304a\u307e\u304b\u306b\u66f8\u304f\u3068\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002\u4e2d\u8eab\u3092\u307f\u308b\u3068\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u5834\u5408\u306b\u306f\u3001TextBox \u3068 Password \u306e\uff12\u3064\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u6301\u3063\u3066\u3044\u308b\u306e\u3067\u3001Xamarin.Forms \u5074\u3067\u306f Entry \u3001MS XAML \u3067\u306f Canvs \u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2014\/06\/image_thumb10.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"307\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;\" \/><\/a><\/p>\n<p>\u306a\u306e\u3067\u3001Xamarin.Forms \u5074\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304b\u3089\u3001\u3046\u307e\u304f MS XAML \u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u898b\u3064\u3051\u3066\u3084\u308c\u3070\u3001Tap \u3084 Mouse \u30a4\u30d9\u30f3\u30c8\u7b49\u306e\u30cd\u30a4\u30c6\u30a3\u30d6\u306a\u30a4\u30d9\u30f3\u30c8\u3092\u8a2d\u5b9a\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<h3>\u25a0Renderer \u306e\u30c4\u30ea\u30fc \u3092\u8997\u3044\u3066\u307f\u308b<\/h3>\n<p>\u305f\u3081\u3057\u306b\u3001Windows Phone \u306e MainPage \u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3092\u5f04\u3063\u3066\u3001\u30c4\u30ea\u30fc\u3092\u66f8\u304d\u51fa\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\npublic MainPage()\r\n{\r\n    InitializeComponent();\r\n\r\n    Forms.Init();\r\n    Content = TMPuzzleXForms.App.GetMainPage().ConvertPageToUIElement(this);\r\n    Disp(Content);\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nvoid Disp(UIElement el, string spc = &quot;&quot;)\r\n{\r\n    var pa = el as Panel;\r\n    if (pa == null)\r\n    {\r\n        Debug.WriteLine(&quot;{0}{1}&quot;, spc, el.GetType().Name);\r\n    }\r\n    else\r\n    {\r\n        Debug.WriteLine(&quot;{0}{1} '{2}'&quot;, spc, pa.GetType().Name, pa.Name);\r\n        foreach (var it in pa.Children)\r\n        {\r\n            Disp(it, spc + &quot; &quot;);\r\n        }\r\n    }\r\n}\r\n<\/pre>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u3053\u3093\u306a\u611f\u3058\u306b Renderer \u306e\u30c4\u30ea\u30fc\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002Name \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u51fa\u529b\u3057\u3066\u307f\u305f\u306e\u3067\u3059\u304c\u3001\u6b8b\u5ff5\u306a\u304c\u3089\u7a7a\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u540d\u524d\u306f\u5225\u9014 FindName \u3067\u691c\u7d22\u3057\u306a\u3044\u3068\u99c4\u76ee\u3063\u307d\u3044\u3067\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nCanvas ''\r\n PageRenderer ''\r\n  ViewRenderer ''\r\n   LabelRenderer ''\r\n    TextBlock\r\n   ViewRenderer ''\r\n    EntryRenderer ''\r\n     Canvas ''\r\n      PhoneTextBox\r\n      PasswordBox\r\n    LabelRenderer ''\r\n     TextBlock\r\n    LabelRenderer ''\r\n     TextBlock\r\n    LabelRenderer ''\r\n     TextBlock\r\n    LabelRenderer ''\r\n     TextBlock\r\n    LabelRenderer ''\r\n     TextBlock\r\n    LabelRenderer ''\r\n     TextBlock\r\n   ViewRenderer ''\r\n    ImageRenderer ''\r\n     Image\r\n    ImageRenderer ''\r\n     Image\r\n    ImageRenderer ''\r\n     Image\r\n<\/pre>\n<h3>\u25a0 Entry \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u898b\u3064\u3051\u51fa\u3057\u3066\u3001\u30a4\u30d9\u30f3\u30c8\u3092\u8a2d\u5b9a\u3059\u308b<\/h3>\n<p>\u3057\u304b\u3057\u3001Element \u30d7\u30ed\u30d1\u30c6\u30a3\u3092\u8abf\u3079\u308c\u3070\u3001\u5bfe\u5fdc\u3059\u308b Control \u30d7\u30ed\u30d1\u30c6\u30a3\u3067 Windows Phone \u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u304c\u898b\u3064\u304b\u308b\u3053\u3068\u304c\u5206\u304b\u3063\u305f\u306e\u3067\u3001\u8a66\u3057\u306b Entry \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3060\u3051\u30c1\u30a7\u30c3\u30af\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\npublic MainPage()\r\n{\r\n    InitializeComponent();\r\n\r\n    Forms.Init();\r\n    this.page = TMPuzzleXForms.App.GetMainPage() as TMPuzzleXForms.MainPage;\r\n    \/\/ Content = TMPuzzleXForms.App.GetMainPage().ConvertPageToUIElement(this);\r\n    this.Content = page.ConvertPageToUIElement(this);\r\n    Disp(Content);\r\n\r\n    SetNamePageToUIelement(&quot;textUserName&quot;, this.page);\r\n    var obj = this.FindName(&quot;textUserName&quot;) as UIElement;\r\n    obj.LostFocus += obj_LostFocus;\r\n}\r\n\r\nvoid obj_LostFocus(object sender, RoutedEventArgs e)\r\n{\r\n    Debug.WriteLine(&quot;lost focus&quot;);\r\n}\r\n<\/pre>\n<p>Xamarin.Forms \u5074\u3067 textUserName \u3068\u540d\u524d\u3064\u3051\u305f\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u5bfe\u5fdc\u3059\u308b Windows Phone \u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u898b\u3064\u3051\u51fa\u3057\u307e\u3059\u3002\u305d\u3057\u3066\u3001LostFocus \u6642\u306b\u30c7\u30d0\u30c3\u30b0\u51fa\u529b\u3059\u308b\u30b3\u30fc\u30c9\u3067\u3059\u3002<\/p>\n<p>\u30c4\u30ea\u30fc\u304b\u3089\u63a2\u3057\u51fa\u3059\u30b3\u30fc\u30c9\u306f\u3053\u3093\u306a\u98a8\u306b\u306a\u308a\u307e\u3059\u3002\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u76f4\u63a5\u8fd4\u3059\u306e\u3067\u306f\u306a\u304f\u3001\u3044\u3061\u3069 Xamarin.Forms \u3067\u4ed8\u3051\u305f\u540d\u524d\u3068\u540c\u3058\u3082\u306e\u3092 Windows Phone \u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u3082\u3064\u3051\u3066\u3044\u307e\u3059\u3002\u3053\u3046\u3059\u308b\u3068\u3001\u5f8c\u304b\u3089 FindName \u3067\u898b\u3064\u3051\u3089\u308c\u308b\u306e\u3067\u6c4e\u7528\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\nvoid SetNamePageToUIelement(string name, Xamarin.Forms.Page page )\r\n{\r\n    var el = page.FindByName&lt;Entry&gt;(name);\r\n    if (el != null)\r\n    {\r\n        var rend = FindRenderer( el );\r\n        if (rend != null)\r\n        {\r\n            var en = rend as EntryRenderer;\r\n            en.Control.Name = name;\r\n        }\r\n    }\r\n}\r\n\r\nUIElement FindRenderer(Entry ent)\r\n{\r\n    return Search( this.Content, ent );\r\n}\r\nUIElement Search(UIElement el, Entry ent)\r\n{\r\n    var pa = el as Panel;\r\n    if (pa != null)\r\n    {\r\n        var en = pa as EntryRenderer;\r\n        if (en != null &amp;&amp; en.Element == ent)\r\n        {\r\n            return en;\r\n        }\r\n        foreach (var it in pa.Children)\r\n        {\r\n            var ret = Search(it, ent);\r\n            if (ret != null)\r\n            {\r\n                return ret;\r\n            }\r\n        }\r\n    }\r\n    return null;\r\n}\r\n<\/pre>\n<p>\u307e\u3042\u3001\u3044\u3061\u3044\u3061\u63a2\u7d22\u3092\u3059\u308b\u3068\u9045\u304f\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u3001\u4e00\u5ea6 Xamarin.Forms \u306e\u30c4\u30ea\u30fc\u3092 Renderer \u3067\u63a2\u7d22\u3057\u3066\u3057\u307e\u3063\u3066\u304b\u3089\u540d\u524d\u3092\u4ed8\u3051\u308b\u3068\u3088\u3044\u3067\u3057\u3087\u3046\u3002\u3053\u306e\u3042\u305f\u308a\u306f\u3001\u5f8c\u65e5\u3084\u308b\u4e88\u5b9a\u3002<\/p>\n<p>\u30cd\u30a4\u30c6\u30a3\u30d6\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30a4\u30d9\u30f3\u30c8\u304c\u53d6\u308c\u308b\u306e\u3067 Image \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e Tap \u30a4\u30d9\u30f3\u30c8\u3082\u4ed8\u52a0\u3067\u304d\u307e\u3059\u3002\u304a\u305d\u3089\u304f\u3001iOS\/Android \u3082\u540c\u3058\u65b9\u5f0f\u3067\u3067\u304d\u308b\u3068\u601d\u3046\u306e\u3067\u3001\u3053\u306e\u3042\u305f\u308a\u306f\u5171\u901a\u3057\u3066\u4f7f\u3048\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u304d\u307e\u3059\u3002\u3061\u3087\u3063\u3068\u3084\u3063\u304b\u3044\u306a\u306e\u306f\u3001EntryRenderer \u30af\u30e9\u30b9\u306f\u5171\u901a\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304b\u3089\u7d99\u627f\u3055\u308c\u3066\u3044\u306a\u304f\u3066\u3001ViewRenderer&lt;Entry, System.Windows.Controls.Canvas&gt; \u306a\u611f\u3058\u3067\u3072\u3068\u3064\u3072\u3068\u3064\u30b8\u30a7\u30cd\u30ea\u30c3\u30af\u304c\u4f7f\u308f\u308c\u3066\u308b\u3063\u3066\u3068\u3053\u308d\u3067\u3059\u306d\u3002\u53d6\u5f97\u3057\u305f\u3044\u3068\u3053\u308d\u304c\u3001Control \u30d7\u30ed\u30d1\u30c6\u30a3\u3068 Element \u30d7\u30ed\u30d1\u30c6\u30a3\u306a\u306e\u3067\u3001\u5171\u901a\u306b\u6301\u3063\u3066\u3044\u308b Canvas \u3067\u306f\u99c4\u76ee\u3068\u3044\u3046&#8230;\u3053\u3053\u306f\u5404\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3054\u3068\u306b\u66f8\u304f\u3057\u304b\u306a\u3044\u306e\u304b\u306a\u3002\u3042\u308b\u3044\u306f\u30ea\u30d5\u30ec\u30af\u30b7\u30e7\u30f3\u3092\u4f7f\u3046\u3068\u3046\u307e\u304f\u4f5c\u308c\u308b\u304b\u3082\u3002<\/p>\n<pre class=\"brush: csharp; title: ; notranslate\" title=\"\">\r\n    public class VisualElementRenderer&lt;TElement, TNativeElement&gt; : Canvas, IVisualElementRenderer, IRegisterable\r\n        where TElement : Xamarin.Forms.VisualElement\r\n        where TNativeElement : System.Windows.FrameworkElement\r\n    {\r\n        public VisualElementRenderer();\r\n\r\n        protected bool AutoPackage { get; set; }\r\n        protected bool AutoTrack { get; set; }\r\n        public UIElement ContainerElement { get; }\r\n        public TNativeElement Control { get; }\r\n        public TElement Element { get; }\r\n        protected VisualElementTracker Tracker { get; set; }\r\n<\/pre>\n<p>\u3053\u306e\u30c6\u30af\u30cb\u30c3\u30af\u3092\u3001\u6708\u66dc\u65e5\u306e\u30b3\u30f3\u30c6\u30b9\u30c8\u306b\u9593\u306b\u5408\u308f\u305b\u308b\u304b&#8230;\u3069\u3046\u304b\u306f\u4e0d\u660e\u3002\u3069\u3046\u305b\u306a\u3089\u3070\u6c4e\u7528\u7684\u306b\u4f5c\u3063\u3066\u304a\u304d\u305f\u3044\u3057\u3001Image \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30bf\u30c3\u30d7\u306f3\u6a5f\u7a2e\u540c\u3058\u3088\u3046\u306b\u4f5c\u308a\u305f\u3044\u306e\u3067\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xamarin.Forms \u3067\u306f\u30a4\u30d9\u30f3\u30c8\u7d61\u307f\u304c\u96a0\u853d\u5316\u3055\u308c\u3066\u3044\u3066\u3001\u30dc\u30bf\u30f3\u306e\u30af\u30ea\u30c3\u30af\u30a4\u30d9\u30f3\u30c8\u3084\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u306e\u5909\u66f4\u30a4\u30d9\u30f3\u30c8\u3050\u3089\u3044\u3057\u304b\u767a\u751f\u3057\u307e\u305b\u3093\u3002\u3053\u306e\u305f\u3081\u3001\u30d1\u30ba\u30eb\u30b2\u30fc\u30e0\u3067\u306f\u753b\u50cf\uff08Image\u30bf\u30b0\uff09\u306e\u30bf\u30c3\u30d7\u30a4\u30d9\u30f3\u30c8\u3092 Xama &hellip; <a href=\"http:\/\/www.moonmile.net\/blog\/archives\/5908\">\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":[66,62],"tags":[],"class_list":["post-5908","post","type-post","status-publish","format-standard","hentry","category-windows-phone","category-xamarin"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5908","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=5908"}],"version-history":[{"count":3,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5908\/revisions"}],"predecessor-version":[{"id":5911,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/5908\/revisions\/5911"}],"wp:attachment":[{"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=5908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=5908"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=5908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}