Change XAML after debugging error

I added a ApplicationBar button
Then debugging error

The error code is as follows
this.LayoutRoot=((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));

Started by Emma at February 06, 2016 - 9:12 PM

You add a x:Name to the Grid.?

Posted by Kerwin at February 10, 2016 - 10:08 PM

Forgot to say this line of code is in MainPage.g.cs
The changes of VS according to the XAML generation can't change

Posted by Emma at February 17, 2016 - 10:50 PM

What misstatement?

Posted by Kerwin at February 20, 2016 - 10:58 PM

Direct is abnormal but I fail to see what is abnormal
Then choose to continue.

Will stop here
// An unhandled exception; break into the debugger
System.Diagnostics.Debugger.Break();

Posted by Emma at February 25, 2016 - 11:50 PM

The page you can open this in blend?

Posted by Kerwin at November 27, 2016 - 5:01 PM

Sure
This morning again repeatedly modified.
Now the error code point
System.Windows.Application.LoadComponent(this, new System.Uri("/%E5%8E%86%E5%8F%B2%E4%B8%8A%E7%9A%84%E4%BB%8A%E5%A4%A9;component/MainPage.xaml", System.UriKind.Relative));

XAML code:
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>

Posted by Emma at December 12, 2016 - 5:36 PM

/%E5%8E%86%E5%8F%B2%E4%B8%8A%E7%9A%84%E4%BB%8A%E5%A4%A9;component/MainPage.xaml

Why is this garbled?

Posted by Kerwin at December 25, 2016 - 6:13 PM

Because the application name is Chinese.

Posted by Emma at January 05, 2017 - 8:13 PM

Your mistake is that AppBar?

Posted by Kerwin at January 07, 2017 - 6:53 PM

Yes but I repeatedly modified after the APPbar button to delete also or so.

Posted by Emma at January 13, 2017 - 7:36 PM