WpDetailPage.xaml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 Background="White">
  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"/>
  26. </ItemsPanelTemplate>
  27. </ListView.ItemsPanel>
  28. <ListView.ItemContainerStyle>
  29. <Style TargetType="ListViewItem">
  30. <Setter Property="Padding" Value="0"/>
  31. <Setter Property="Margin" Value="0"/>
  32. </Style>
  33. </ListView.ItemContainerStyle>
  34. <ListView.ItemTemplate >
  35. <DataTemplate x:DataType="data:Picture">
  36. <Image Source="{x:Bind Source}" Height="{x:Bind Width}" Width="{x:Bind Width}" Stretch="UniformToFill" />
  37. </DataTemplate>
  38. </ListView.ItemTemplate>
  39. </ListView>
  40. <RelativePanel Grid.Row="2">
  41. <TextBlock x:Uid="WpDetailPagetxtBeschrijving" Text="Beschrijving" FontSize="20" Margin="15,15,0,15" />
  42. <Line X1="0" X2="{x:Bind Width, Mode=OneTime}" Y1="50" Y2="50" Stroke="Gray" StrokeThickness="2" />
  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>