WpDetailPage.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. <ListView.ItemsPanel>
  21. <ItemsPanelTemplate>
  22. <StackPanel Orientation="Horizontal"/>
  23. </ItemsPanelTemplate>
  24. </ListView.ItemsPanel>
  25. <ListView.ItemTemplate >
  26. <DataTemplate x:DataType="data:Picture">
  27. <ListViewItem>
  28. <Image Source="{x:Bind Source}" Height="{x:Bind Width}" Width="{x:Bind Width}" Stretch="UniformToFill" />
  29. </ListViewItem>
  30. </DataTemplate>
  31. </ListView.ItemTemplate>
  32. </ListView>
  33. <RelativePanel Grid.Row="2">
  34. <TextBlock Text="Beschrijving" FontSize="20" Margin="15,15,0,15" />
  35. </RelativePanel>
  36. <RelativePanel Grid.Row="3">
  37. <ScrollViewer Margin="15,0,0,0" VerticalScrollBarVisibility="Auto" >
  38. <TextBlock HorizontalAlignment="Stretch" VerticalAlignment="Stretch" TextWrapping="Wrap" Text="{x:Bind wp.Description}"/>
  39. </ScrollViewer>
  40. </RelativePanel>
  41. </Grid>
  42. </Page>