Use the x:Name directive instead of Name for resolving does not contain a definition for and no extension method can be found with control initialization in XAML page. Also, You can get more details for this from the following reference.
How to resolve does not contains a definition issue