I've started to play with cshtml5, if I have a Texbox control and add the code below. If I compile VS will report:
Error 12 'Test.MainPage' does not contain a definition for 'InitializeComponent' and no extension method 'InitializeComponent' accepting a first argument of type 'Test.MainPage' could be found (are you missing a using directive or an assembly reference?) D:\temp\htmlc\Test\MainPage.xaml.cs
Error 9 Compilation stopped due to errors. See other errors for details. Rebuild the project to try again.
Code: Select all
TbxGrid.Text = "Hello";
string test = TbxGrid.Text[0].ToString();
If I comment out
Code: Select all
string test = TbxGrid.Text[0].ToString();
Is this a bug?