CarouselGettingStartedPage.xaml 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.CarouselGettingStartedPage">
  4. <DockPanel>
  5. <ScrollViewer DockPanel.Dock="Right" Width="260">
  6. <StackPanel Margin="12" Spacing="8">
  7. <TextBlock Text="Configuration" FontWeight="SemiBold" FontSize="16"
  8. Foreground="{DynamicResource SystemControlHighlightAccentBrush}" />
  9. <TextBlock Text="Navigation" FontWeight="SemiBold" FontSize="13" />
  10. <Button x:Name="PreviousButton"
  11. Content="Previous"
  12. HorizontalAlignment="Stretch" />
  13. <Button x:Name="NextButton"
  14. Content="Next"
  15. HorizontalAlignment="Stretch" />
  16. <Separator />
  17. <TextBlock Text="Status" FontWeight="SemiBold" FontSize="14" />
  18. <TextBlock x:Name="StatusText"
  19. Text="Item: 1 / 3"
  20. Opacity="0.7"
  21. TextWrapping="Wrap" />
  22. </StackPanel>
  23. </ScrollViewer>
  24. <Border DockPanel.Dock="Right" Width="1"
  25. Background="{DynamicResource SystemControlForegroundBaseMediumLowBrush}" />
  26. <Border Margin="12"
  27. BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
  28. BorderThickness="1"
  29. CornerRadius="6"
  30. ClipToBounds="True">
  31. <Carousel x:Name="DemoCarousel" Height="300" IsSwipeEnabled="True">
  32. <Carousel.PageTransition>
  33. <PageSlide Duration="0.25" Orientation="Horizontal" />
  34. </Carousel.PageTransition>
  35. <Border Margin="14,12" CornerRadius="12" ClipToBounds="True">
  36. <Grid>
  37. <Image Source="/Assets/delicate-arch-896885_640.jpg" Stretch="UniformToFill" />
  38. <Border Background="#80000000" VerticalAlignment="Bottom" Padding="12">
  39. <TextBlock Text="Item 1: Delicate Arch" Foreground="White"
  40. HorizontalAlignment="Center" FontWeight="SemiBold" />
  41. </Border>
  42. </Grid>
  43. </Border>
  44. <Border Margin="14,12" CornerRadius="12" ClipToBounds="True">
  45. <Grid>
  46. <Image Source="/Assets/hirsch-899118_640.jpg" Stretch="UniformToFill" />
  47. <Border Background="#80000000" VerticalAlignment="Bottom" Padding="12">
  48. <TextBlock Text="Item 2: Hirsch" Foreground="White"
  49. HorizontalAlignment="Center" FontWeight="SemiBold" />
  50. </Border>
  51. </Grid>
  52. </Border>
  53. <Border Margin="14,12" CornerRadius="12" ClipToBounds="True">
  54. <Grid>
  55. <Image Source="/Assets/maple-leaf-888807_640.jpg" Stretch="UniformToFill" />
  56. <Border Background="#80000000" VerticalAlignment="Bottom" Padding="12">
  57. <TextBlock Text="Item 3: Maple Leaf" Foreground="White"
  58. HorizontalAlignment="Center" FontWeight="SemiBold" />
  59. </Border>
  60. </Grid>
  61. </Border>
  62. </Carousel>
  63. </Border>
  64. </DockPanel>
  65. </UserControl>