1.

What Is The Parent Xaml Tag Of Silverlight Page?

Answer»

UserControl is the PARENT xaml tag of the Silverlight page. All other tags are placed under UserControl tag.

 <UserControl x:Class="SilverlightApplication2.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
Width="400" HEIGHT="300"&GT;

 <GRID x:Name="LayoutRoot" Background="White">
</Grid>
</UserControl>

UserControl is the parent xaml tag of the Silverlight page. All other tags are placed under UserControl tag.

 <UserControl x:Class="SilverlightApplication2.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>



Discussion

No Comment Found