Added general description
This commit is contained in:
@@ -22,6 +22,15 @@ namespace NavCityBreda.ViewModels
|
|||||||
protected override void UpdatePropertiesToNewLanguage()
|
protected override void UpdatePropertiesToNewLanguage()
|
||||||
{
|
{
|
||||||
NotifyPropertyChanged(nameof(Routes));
|
NotifyPropertyChanged(nameof(Routes));
|
||||||
|
NotifyPropertyChanged(nameof(Description));
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Description
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return Util.Loader.GetString("RouteListDescription");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<Route> Routes
|
public List<Route> Routes
|
||||||
|
|||||||
@@ -7,8 +7,15 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d">
|
mc:Ignorable="d">
|
||||||
|
|
||||||
<RelativePanel Grid.Row="2" Name="RouteListPanel">
|
<Grid 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.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>
|
<ListView.ItemTemplate>
|
||||||
<DataTemplate x:Name="ListViewDataTemplate">
|
<DataTemplate x:Name="ListViewDataTemplate">
|
||||||
<StackPanel Margin="5,0,0,0">
|
<StackPanel Margin="5,0,0,0">
|
||||||
@@ -19,5 +26,5 @@
|
|||||||
</ListView.ItemTemplate>
|
</ListView.ItemTemplate>
|
||||||
|
|
||||||
</ListView>
|
</ListView>
|
||||||
</RelativePanel>
|
</Grid>
|
||||||
</Page>
|
</Page>
|
||||||
|
|||||||
Reference in New Issue
Block a user