{"id":871,"date":"2016-07-11T18:51:14","date_gmt":"2016-07-11T09:51:14","guid":{"rendered":"http:\/\/sonic.blue\/it\/?p=871"},"modified":"2016-09-09T15:13:27","modified_gmt":"2016-09-09T06:13:27","slug":"xamarin-studio%e3%81%a7xaml%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e3%83%97%e3%83%ad%e3%82%b8%e3%82%a7%e3%82%af%e3%83%88%e3%81%ab%e5%8f%96%e3%82%8a%e8%be%bc%e3%82%80%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"http:\/\/sonic.blue\/it\/871","title":{"rendered":"Xamarin Studio\u3067Xaml\u30d5\u30a1\u30a4\u30eb\u3092\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u53d6\u308a\u8fbc\u3080\u65b9\u6cd5"},"content":{"rendered":"<p>Xaml\u5f62\u5f0f\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u65e2\u5b58\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u53d6\u308a\u8fbc\u307f\u305f\u3044\u5834\u5408\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\uff08\u3082\u3057\u304f\u306f\u3001\u4e00\u6642\u7684\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u9664\u5916\u3057\u3066\u3057\u307e\u3063\u305fXaml\u306a\u3069\u3002\uff09<br \/>\n\u3053\u306e\u6642\u306b\u3001\u300cdemo.xaml\u300d\u300cdemo.xaml.cs\u300d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u666e\u901a\u306b\u300c\u30d5\u30a1\u30a4\u30eb\u3092\u8ffd\u52a0\u300d\u3067\u53d6\u308a\u8fbc\u3093\u3067\u3057\u307e\u3063\u305f\u5834\u5408\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u6642\u306bInitializeComponent\u304c\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002<br \/>\n\u300c<span style=\"color: #ff0000;\">The name &#8216;InitializeComponent&#8217; does not exist in the current context<\/span>\u300d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-888 aligncenter\" src=\"http:\/\/sonic.blue\/it\/wp-content\/uploads\/initializeerror-300x94.png\" alt=\"initializeerror\" width=\"300\" height=\"94\" srcset=\"http:\/\/sonic.blue\/it\/wp-content\/uploads\/initializeerror-300x94.png 300w, http:\/\/sonic.blue\/it\/wp-content\/uploads\/initializeerror.png 696w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u300c\u3044\u3064\u3082\u306e\u300d\u75c7\u72b6\u3060\u3068\u601d\u3063\u3066Xaml\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u306a\u304a\u3057\u3066\u3082\u3001\u3053\u306e\u5834\u5408\u306f\u6ce2\u7dda\u304c\u6d88\u3048\u307e\u305b\u3093\u3002<\/p>\n<p>\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u3092\u3088\u304f\u898b\u308b\u3068\u3001\u53d6\u308a\u8fbc\u3093\u3060\u30d5\u30a1\u30a4\u30eb\u306fXaml\u30d5\u30a1\u30a4\u30eb\u3068\u3001Xaml.cs\u30d5\u30a1\u30a4\u30eb\u306e\u95a2\u9023\u4ed8\u3051\u304c\u3055\u308c\u3066\u3044\u306a\u3044\u3053\u3068\u306b\u6c17\u4ed8\u304f\u3068\u601d\u3044\u307e\u3059\u3002\uff08\u25bc\u3067\u968e\u5c64\u5316\u304c\u3055\u308c\u3066\u3044\u306a\u3044\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-887 aligncenter\" src=\"http:\/\/sonic.blue\/it\/wp-content\/uploads\/solutionexp-300x235.png\" alt=\"solutionexp\" width=\"300\" height=\"235\" srcset=\"http:\/\/sonic.blue\/it\/wp-content\/uploads\/solutionexp-300x235.png 300w, http:\/\/sonic.blue\/it\/wp-content\/uploads\/solutionexp.png 301w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2>\u5bfe\u51e6\u65b9\u6cd5<\/h2>\n<p>\u5b9f\u306f\u3001\u3053\u308c\u3092\u89e3\u6d88\u3059\u308b\u306b\u306f\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u5185\u306e\u300c.csproj\u300d\u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30f3\u30c0\u30fc\u3067\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u3042\u308b\u30d5\u30a9\u30eb\u30c0\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br \/>\n\u305d\u306e\u4e2d\u306b\u300c.csproj\u300d\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304d\u307e\u3059\u3002<br \/>\n\uff08\u300c.csproj\u300d\u30d5\u30a1\u30a4\u30eb\u306fXamarinStudio\u3067\u306f\u898b\u3048\u306a\u3044\u3057\u958b\u3051\u306a\u3044\u3002VisualStudio Code\u3092\u5229\u7528\u3059\u308b\u3068\u4fbf\u5229\u3002\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-886 aligncenter\" src=\"http:\/\/sonic.blue\/it\/wp-content\/uploads\/csproj-300x286.png\" alt=\"csproj\" width=\"300\" height=\"286\" srcset=\"http:\/\/sonic.blue\/it\/wp-content\/uploads\/csproj-300x286.png 300w, http:\/\/sonic.blue\/it\/wp-content\/uploads\/csproj.png 303w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u3053\u3053\u306b\u30d5\u30a1\u30a4\u30eb\u306e\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u8a2d\u5b9a\u60c5\u5831\u304cXML\u5f62\u5f0f\u3067\u8a70\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u305f\u307e\u306b\u8997\u3044\u3066\u307f\u308b\u3068\u9762\u767d\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: xml; highlight: [24,28]; title: ; notranslate\" title=\"\">\r\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;\r\n&lt;Project DefaultTargets=&quot;Build&quot; ToolsVersion=&quot;4.0&quot; xmlns=&quot;http:\/\/schemas.microsoft.com\/developer\/msbuild\/2003&quot;&gt;\r\n  &lt;PropertyGroup&gt;\r\n    &lt;Configuration Condition=&quot; '$(Configuration)' == '' &quot;&gt;Debug&lt;\/Configuration&gt;\r\n    &lt;Platform Condition=&quot; '$(Platform)' == '' &quot;&gt;AnyCPU&lt;\/Platform&gt;\r\n    &lt;ProjectGuid&gt;{ABCBB40C-3FAE-4232-A44F-B16DBB003183}&lt;\/ProjectGuid&gt;\r\n    &lt;ProjectTypeGuids&gt;{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}&lt;\/ProjectTypeGuids&gt;\r\n    &lt;UseMSBuildEngine&gt;true&lt;\/UseMSBuildEngine&gt;\r\n    &lt;OutputType&gt;Library&lt;\/OutputType&gt;\r\n    &lt;RootNamespace&gt;Demo&lt;\/RootNamespace&gt;\r\n    &lt;AssemblyName&gt;Demo&lt;\/AssemblyName&gt;\r\n    &lt;TargetFrameworkVersion&gt;v4.5&lt;\/TargetFrameworkVersion&gt;\r\n    &lt;TargetFrameworkProfile&gt;Profile78&lt;\/TargetFrameworkProfile&gt;\r\n  &lt;\/PropertyGroup&gt;\r\n\uff08\u7701\u7565\uff09\r\n  &lt;ItemGroup&gt;\r\n    &lt;EmbeddedResource Include=&quot;App.xaml&quot; \/&gt;\r\n  &lt;\/ItemGroup&gt;\r\n  &lt;ItemGroup&gt;\r\n    &lt;Compile Include=&quot;App.xaml.cs&quot;&gt;\r\n      &lt;DependentUpon&gt;App.xaml&lt;\/DependentUpon&gt;\r\n    &lt;\/Compile&gt;\r\n    &lt;Compile Include=&quot;Properties\\AssemblyInfo.cs&quot; \/&gt;\r\n    &lt;Compile Include=&quot;DemoPage.xaml.cs&quot; \/&gt;\r\n  &lt;\/ItemGroup&gt;\r\n  &lt;ItemGroup&gt;\r\n    &lt;None Include=&quot;packages.config&quot; \/&gt;\r\n    &lt;None Include=&quot;DemoPage.xaml&quot; \/&gt;\r\n  &lt;\/ItemGroup&gt;\r\n\uff08\u7701\u7565\uff09\r\n<\/pre>\n<p>\u53d6\u308a\u8fbc\u3093\u3060\u3060\u3051\u306eXaml\u306f<strong>\uff1cNone\uff1e\u30bf\u30b0<\/strong>\u306b\u3001Xaml.cs\u306f<strong>\uff1cCompile\uff1e\u30bf\u30b0<\/strong>\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\nApp.Xaml\u3068\u6bd4\u8f03\u3059\u308b\u3068\u3001\u3053\u3061\u3089\u306f\u554f\u984c\u306a\u304fXaml\u30d5\u30a1\u30a4\u30eb\u3068\u3001Xaml.cs\u30d5\u30a1\u30a4\u30eb\u304c<strong>\uff1cDependentUpon\uff1e\u30bf\u30b0<\/strong>\u3067\u95a2\u9023\u4ed8\u3051\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\uff08\u3082\u3057\u7121\u3044\u5834\u5408\u306f\u6bd4\u8f03\u3059\u308b\u305f\u3081\u306b\u3001\u3044\u3063\u305f\u3093\u65b0\u898f\u306e\u300cForms ContentPage Xaml\u300d\u3092\u4f5c\u3063\u3066\u308b\u3068\u308f\u304b\u308a\u3084\u3059\u3044\u3067\u3059\u3002\uff09<\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n  &lt;ItemGroup&gt;\r\n    &lt;EmbeddedResource Include=&quot;App.xaml&quot; \/&gt;\r\n  &lt;\/ItemGroup&gt;\r\n  &lt;ItemGroup&gt;\r\n    &lt;Compile Include=&quot;App.xaml.cs&quot;&gt;\r\n      &lt;DependentUpon&gt;App.xaml&lt;\/DependentUpon&gt;\r\n    &lt;\/Compile&gt;\r\n  &lt;ItemGroup&gt;\r\n<\/pre>\n<p>\u306a\u306e\u3067\u3001\u540c\u3058\u3088\u3046\u306b<strong>\uff1cDependentUpon\uff1e\u30bf\u30b0<\/strong>\u3067\u95a2\u9023\u4ed8\u3051\u3092\u3057\u3066\u3042\u3052\u307e\u3059\u3002<br \/>\nXaml\u5074\u306e<strong>\uff1cnone\uff1e\u30bf\u30b0<\/strong>\u3082<strong>\uff1cEmbeddedResource\uff1e\u30bf\u30b0<\/strong>\u306b\u5909\u66f4\u3057\u3066\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: xml; highlight: [3,9,10,11]; title: ; notranslate\" title=\"\">\r\n  &lt;ItemGroup&gt;\r\n    &lt;EmbeddedResource Include=&quot;App.xaml&quot; \/&gt;\r\n    &lt;EmbeddedResource Include=&quot;DemoPage.xaml&quot; \/&gt;\r\n  &lt;\/ItemGroup&gt;\r\n  &lt;ItemGroup&gt;\r\n    &lt;Compile Include=&quot;App.xaml.cs&quot;&gt;\r\n      &lt;DependentUpon&gt;App.xaml&lt;\/DependentUpon&gt;\r\n    &lt;\/Compile&gt;\r\n    &lt;Compile Include=&quot;DemoPage.xaml.cs&quot;&gt;\r\n      &lt;DependentUpon&gt;DemoPage.xaml&lt;\/DependentUpon&gt;\r\n    &lt;\/Compile&gt;\r\n  &lt;ItemGroup&gt;\r\n<\/pre>\n<p>\u3053\u308c\u3067\u4fdd\u5b58\u3059\u308c\u3070\u3001\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u30fc\u304c\u5143\u901a\u308a\u306b\u3001Xaml\u30d5\u30a1\u30a4\u30eb\u3068\u3001Xaml.cs\u30d5\u30a1\u30a4\u30eb\u306e\u95a2\u9023\u4ed8\u3051\u304c\u51fa\u6765\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002\uff08\u25bc\u3067\u968e\u5c64\u5316\u304c\u3055\u308c\u3066\u3044\u308b\uff09<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-896 aligncenter\" src=\"http:\/\/sonic.blue\/it\/wp-content\/uploads\/solutionexp2-300x238.png\" alt=\"solutionexp2\" width=\"300\" height=\"238\" srcset=\"http:\/\/sonic.blue\/it\/wp-content\/uploads\/solutionexp2-300x238.png 300w, http:\/\/sonic.blue\/it\/wp-content\/uploads\/solutionexp2.png 301w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>\u3053\u306e\u72b6\u614b\u306a\u3089\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u3082InitializeComponent\u306e\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u3044\u306f\u305a\u3067\u3059\u3002<br \/>\n\u203b\u3082\u3057\u306a\u3063\u305f\u5834\u5408\u306f\u3001\u307b\u304b\u306e\u554f\u984c\u3067\u3059\u306e\u3067\u5225\u306e\u65b9\u6cd5\u3084\u7de8\u96c6\u9593\u9055\u3044\u304c\u306a\u3044\u304b\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Xaml\u5f62\u5f0f\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u65e2\u5b58\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306b\u53d6\u308a\u8fbc\u307f\u305f\u3044\u5834\u5408\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002 \uff08\u3082\u3057\u304f\u306f\u3001\u4e00\u6642\u7684\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u9664\u5916\u3057\u3066\u3057\u307e\u3063\u305fXaml\u306a\u3069\u3002\uff09 \u3053\u306e\u6642\u306b\u3001\u300cdemo.xaml\u300d\u300cdemo.xaml.cs\u300d\u306e\u30d5 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,2],"tags":[18],"class_list":["post-871","post","type-post","status-publish","format-standard","hentry","category-xamarin","category-program","tag-xamarin"],"_links":{"self":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts\/871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/comments?post=871"}],"version-history":[{"count":19,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts\/871\/revisions"}],"predecessor-version":[{"id":899,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/posts\/871\/revisions\/899"}],"wp:attachment":[{"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/media?parent=871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/categories?post=871"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sonic.blue\/it\/wp-json\/wp\/v2\/tags?post=871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}