Wednesday, May 28, 2014

Name of this element

Why is there no forward slash for the last StackPanel tag? I get these errors but I'm can't see what's wrong (except for that possibly).




<Page
x:Name="pageRoot"
x:Class="Exits_Expert_London.Emirates_Greenwich_Peninsula"
DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
xmlns="http://ift.tt/w9rHWX;
xmlns:x="http://ift.tt/zZkFEV;
xmlns:local="using:Exits_Expert_London"
xmlns:common="using:Exits_Expert_London.Common"
xmlns:d="http://ift.tt/PuXO1J;
xmlns:mc="http://ift.tt/R4RR6u;
mc:Ignorable="d">

<Page.Resources>
<!-- TODO: Delete this line if the key AppName is declared in App.xaml -->
<x:String x:Key="AppName">My Application</x:String>
</Page.Resources>

<!--
This grid acts as a root panel for the page that defines two rows:
* Row 0 contains the back button and page title
* Row 1 contains the rest of the page layout
-->
<Grid Background="#FFC2142D">
<Grid.ChildrenTransitions>
<TransitionCollection>
<EntranceThemeTransition/>
</TransitionCollection>
</Grid.ChildrenTransitions>
<Grid.RowDefinitions>
<RowDefinition Height="140"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>

<!-- Back button and page title -->
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="120"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Button x:Name="backButton" Margin="39,59,39,0" Command="{Binding NavigationHelper.GoBackCommand, ElementName=pageRoot}"
Style="{StaticResource NavigationBackButtonNormalStyle}"
VerticalAlignment="Top"
AutomationProperties.Name="Back"
AutomationProperties.AutomationId="BackButton"
AutomationProperties.ItemType="Navigation Button"/>
<TextBlock x:Name="pageTitle" Text="Page Title" Style="{StaticResource HeaderTextBlockStyle}" Grid.Column="1"
IsHitTestVisible="false" TextWrapping="NoWrap" VerticalAlignment="Bottom" Margin="0,0,30,40" Foreground="White"/>
</Grid>
<Grid Grid.Row="1">
<ScrollViewer>
<StackPanel Orientation="Horizontal">
<!-- group starts here -->
<StackPanel>
<TextBlock Text="Group x"/>
<WrapGrid>
<!-- put grouped items here. -->
</WrapGrid>
</StackPanel>
<!-- group ends right above this line -->

<!-- group starts here -->
<StackPanel>
<TextBlock Text="Group x"/>
<WrapGrid>
<!-- put grouped items here. -->
</WrapGrid>
</StackPanel>
<!-- group ends right above this line -->
</StackPanel>
</ScrollViewer>
</Grid>
</Grid>
</Page>


No comments:

Post a Comment