Added general description

This commit is contained in:
2015-12-23 22:02:37 +01:00
parent 8b51fabf4e
commit c6e635fc63
2 changed files with 19 additions and 3 deletions
+9
View File
@@ -22,6 +22,15 @@ namespace NavCityBreda.ViewModels
protected override void UpdatePropertiesToNewLanguage()
{
NotifyPropertyChanged(nameof(Routes));
NotifyPropertyChanged(nameof(Description));
}
public string Description
{
get
{
return Util.Loader.GetString("RouteListDescription");
}
}
public List<Route> Routes
+10 -3
View File
@@ -7,8 +7,15 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<RelativePanel Grid.Row="2" Name="RouteListPanel">
<ListView x:Name="RouteList" ItemsSource="{Binding Routes}" Margin="0,10,0,0" IsItemClickEnabled="True" ItemClick="RouteList_ItemClick" RelativePanel.AlignBottomWithPanel="True" RelativePanel.AlignTopWithPanel="True" RelativePanel.AlignLeftWithPanel="True" RelativePanel.AlignRightWithPanel="True">
<Grid Grid.Row="2" Name="RouteListPanel">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<TextBlock Margin="17,10,5,10" Text="{Binding Description}" TextWrapping="WrapWholeWords" Grid.Row="0"/>
<ListView x:Name="RouteList" Grid.Row="1" ItemsSource="{Binding Routes}" Margin="0,10,0,0" IsItemClickEnabled="True" ItemClick="RouteList_ItemClick">
<ListView.ItemTemplate>
<DataTemplate x:Name="ListViewDataTemplate">
<StackPanel Margin="5,0,0,0">
@@ -19,5 +26,5 @@
</ListView.ItemTemplate>
</ListView>
</RelativePanel>
</Grid>
</Page>