RouteSelectPage.xaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <Page
  2. x:Class="Breda_Tour.RouteSelectScreen.RouteSelectPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:Breda_Tour.RouteSelectScreen"
  6. xmlns:c="using:Breda_Tour.CustomControls"
  7. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:data="using:Breda_Tour.Data"
  10. xmlns:con="using:Breda_Tour.RouteSelectScreen"
  11. mc:Ignorable="d">
  12. <Grid>
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="40"/>
  15. <RowDefinition Height="50" />
  16. <RowDefinition Height="*"/>
  17. </Grid.RowDefinitions>
  18. <c:DefaultTopBar Header="Route Selecteren"/>
  19. <c:DefaultPivotControl x:Name="DefaultPivot" Grid.Row="1"/>
  20. <RelativePanel Grid.Row="2" Margin="0,5">
  21. <RelativePanel.Resources>
  22. <con:Converter x:Key="BoolToVis"/>
  23. </RelativePanel.Resources>
  24. <ListView x:Name="Routes" ItemsSource="{x:Bind AllRoutes.Routes}" IsItemClickEnabled="True" ItemClick="Routes_ItemClick">
  25. <ListView.ItemTemplate>
  26. <DataTemplate x:DataType="data:Route">
  27. <StackPanel>
  28. <StackPanel Orientation="Horizontal" Width="340">
  29. <TextBlock Text="{Binding Title}" FontSize="24"/>
  30. <ToggleButton x:Name="toggleButton" Content="" IsChecked="False"/>
  31. </StackPanel>
  32. <StackPanel Orientation="Horizontal" Width="340" Visibility="{Binding Path=IsChecked, ElementName=toggleButton,Converter={StaticResource BoolToVis}}">
  33. <TextBlock Text="Breda" FontSize="16"/>
  34. </StackPanel>
  35. </StackPanel>
  36. </DataTemplate>
  37. </ListView.ItemTemplate>
  38. </ListView>
  39. </RelativePanel>
  40. </Grid>
  41. </Page>