WpDetailPage.xaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <Page
  2. x:Class="Breda_Tour.MapScreen.WpDetailPage"
  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.MapScreen"
  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. 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 x:Name="NameBar" Grid.Row="0" Header="{x:Bind wp.Title}"/>
  19. <ListView Grid.Row="1" ItemsSource="{x:Bind wp.Pictures}"
  20. ScrollViewer.HorizontalScrollMode="Enabled"
  21. ScrollViewer.IsHorizontalRailEnabled="True"
  22. ScrollViewer.VerticalScrollMode="Disabled" HorizontalAlignment="Left" ScrollViewer.HorizontalScrollBarVisibility="Hidden">
  23. <ListView.ItemsPanel>
  24. <ItemsPanelTemplate>
  25. <StackPanel Orientation="Horizontal" Padding="0"/>
  26. </ItemsPanelTemplate>
  27. </ListView.ItemsPanel>
  28. <ListView.ItemTemplate >
  29. <DataTemplate x:DataType="data:Picture">
  30. <ListViewItem Padding="0">
  31. <Canvas Height="170" Width="170" HorizontalAlignment="Center" VerticalAlignment="Center">
  32. <Canvas.Background>
  33. <ImageBrush />
  34. </Canvas.Background>
  35. <Image Tapped="Image_PointerPressed" Source="{x:Bind Source}" Width="170" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  36. </Canvas>
  37. </ListViewItem>
  38. </DataTemplate>
  39. </ListView.ItemTemplate>
  40. </ListView>
  41. <RelativePanel Grid.Row="2">
  42. <TextBlock Text="Beschrijving" FontSize="20" Margin="15,15,0,15" />
  43. </RelativePanel>
  44. <RelativePanel Grid.Row="3">
  45. <ScrollViewer Margin="15,0,0,0" VerticalScrollBarVisibility="Auto" >
  46. <TextBlock HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextWrapping="Wrap" Text="{x:Bind wp.Description}"/>
  47. </ScrollViewer>
  48. </RelativePanel>
  49. </Grid>
  50. </Page>