RouteExample.xaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <Page
  2. x:Class="Breda_Tour.RouteSelectScreen.RouteExample"
  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:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:c="using:Breda_Tour.CustomControls"
  9. xmlns:data="using:Breda_Tour.Data"
  10. mc:Ignorable="d">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="Auto"/>
  15. <RowDefinition Height="Auto"/>
  16. <RowDefinition Height="*"/>
  17. </Grid.RowDefinitions>
  18. <c:DefaultTopBar Grid.Row="0" x:Uid="RouteExamplePagetxtRouteVoorbeeld" Header="Routevoorbeeld"/>
  19. <StackPanel Grid.Row="1">
  20. <StackPanel Orientation="Horizontal" Margin="10,10,0,0">
  21. <TextBlock x:Uid="RouteExamplePagetxtRouteInformatie" Text="Route informatie" FontSize="16"/>
  22. <Button x:Name="StartButton" Visibility="Collapsed" Click="Button_Click" Margin="120,0,0,0" >
  23. <TextBlock Text="Start Route"/>
  24. </Button>
  25. </StackPanel>
  26. <TextBlock x:Name="RouteBlok" FontSize="16" Margin="10,0,0,0"/>
  27. <ProgressRing x:Name="ProgressRing" Height="40" Width="40" IsActive="True" HorizontalAlignment="Left" Margin="20,0,0,0" Foreground="Black"/>
  28. <TextBlock x:Name="Loopblok" FontSize="16" Margin="10,0,0,0" />
  29. <TextBlock x:Name="WaypointsBlok" FontSize="16" Margin="10,0,0,10"/>
  30. </StackPanel>
  31. <StackPanel Grid.Row="2">
  32. <Image Source="ms-appx:///Assets/Map.png" Width="360" />
  33. </StackPanel>
  34. <ListView Grid.Row="3" Margin="10,0,0,0" x:Name="Waypoints" ItemsSource="{x:Bind route.Waypoints}" IsItemClickEnabled="True" ItemClick="Waypoints_OnItemClick">
  35. <ListView.ItemContainerStyle>
  36. <Style TargetType="ListViewItem">
  37. <Setter Property="Padding" Value="0"/>
  38. <Setter Property="Margin" Value="0"/>
  39. </Style>
  40. </ListView.ItemContainerStyle>
  41. <ListView.ItemTemplate >
  42. <DataTemplate x:DataType="data:Waypoint">
  43. <TextBlock Text="{x:Bind Title}" />
  44. </DataTemplate>
  45. </ListView.ItemTemplate>
  46. </ListView>
  47. </Grid>
  48. </Page>