Home > DeveloperSection > Interviews > What is MainPage.xaml?

Posted on    November-17-2012 7:55 AM

 WPF WPF 
Ratings:
 1 Answer(s)
  1866  View(s)
Rate this:

AVADHESH PATEL

Total Post:257

Points:1285
Posted on    November-17-2012 1:00 AM

When you create a Silverlight project using Visual Studio, it creates a default XAML file called "MainPage.xaml". This is just a dummy start page created by Visual Studio, and it does not contain any visible UI elements. The default contents of the MainPage.xaml file looks like this:
Collapse

<UserControl x:Class="SilverlightApplication1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300">
<Grid x:Name="LayoutRoot" Background="White">
</Grid>
</UserControl>


Don't want to miss updates? Please click the below button!

Follow MindStick