LoginSignup
7
5

More than 5 years have passed since last update.

'InitializeComponent'は現在のコンテキスト内に存在しません。だって?はぁ?

Last updated at Posted at 2018-03-26

なぜだか毎回このエラーが私だけでる:sob:
解決策がわかったので備忘のためまとめておきます!

解決策

まぁ基本的にnamespaceを自力で変更したからなのです。修正し忘れているところがあるよ。ということ。
namespaceをhogeAppからhogehogeAppに変えたかった、とする。

修正箇所

TopPage.Xaml
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="hogehogeApp.TopPage">

x:Classのところ!
xaml.cs側を変えたから大丈夫だろー!って思ってビルドするとこのエラーが出る。xaml側も変えてあげてねって話です。
おおざっぱなので、後でもうすこし細かくまとめようと思います。

7
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
5