CarouselVerticalPage.xaml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.CarouselVerticalPage">
  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" Content="Up" HorizontalAlignment="Stretch" />
  11. <Button x:Name="NextButton" Content="Down" HorizontalAlignment="Stretch" />
  12. <Separator />
  13. <TextBlock Text="Transition" FontWeight="SemiBold" FontSize="13" />
  14. <ComboBox x:Name="TransitionCombo"
  15. HorizontalAlignment="Stretch"
  16. SelectedIndex="0">
  17. <ComboBoxItem>PageSlide</ComboBoxItem>
  18. <ComboBoxItem>CrossFade</ComboBoxItem>
  19. <ComboBoxItem>None</ComboBoxItem>
  20. </ComboBox>
  21. <Separator />
  22. <TextBlock Text="Options" FontWeight="SemiBold" FontSize="13" />
  23. <CheckBox x:Name="WrapCheck"
  24. Content="Wrap Selection"
  25. IsChecked="False"
  26. IsCheckedChanged="OnWrapSelectionChanged" />
  27. <Separator />
  28. <TextBlock Text="Status" FontWeight="SemiBold" FontSize="14" />
  29. <TextBlock x:Name="StatusText"
  30. Text="Item: 1 / 4"
  31. Opacity="0.7"
  32. TextWrapping="Wrap" />
  33. <TextBlock Text="Use Up/Down arrow keys or buttons to navigate."
  34. FontSize="11"
  35. Opacity="0.5"
  36. TextWrapping="Wrap" />
  37. </StackPanel>
  38. </ScrollViewer>
  39. <Border DockPanel.Dock="Right" Width="1"
  40. Background="{DynamicResource SystemControlForegroundBaseMediumLowBrush}" />
  41. <Border Margin="12"
  42. BorderBrush="{DynamicResource SystemControlForegroundBaseMediumLowBrush}"
  43. BorderThickness="1"
  44. CornerRadius="6"
  45. ClipToBounds="True">
  46. <Carousel x:Name="DemoCarousel"
  47. Focusable="True"
  48. IsSwipeEnabled="True">
  49. <Carousel.PageTransition>
  50. <PageSlide Duration="0.3" Orientation="Vertical" />
  51. </Carousel.PageTransition>
  52. <Border Margin="14,12" CornerRadius="12">
  53. <Border.Background>
  54. <LinearGradientBrush StartPoint="0%,0%" EndPoint="100%,100%">
  55. <GradientStop Color="#1A1A2E" Offset="0" />
  56. <GradientStop Color="#3525CD" Offset="1" />
  57. </LinearGradientBrush>
  58. </Border.Background>
  59. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Spacing="10">
  60. <TextBlock Text="01" FontSize="64" FontWeight="Bold"
  61. Foreground="White" HorizontalAlignment="Center" LetterSpacing="-2" />
  62. <TextBlock Text="Neon Pulse" FontSize="18" FontWeight="SemiBold"
  63. Foreground="#C3C0FF" HorizontalAlignment="Center" />
  64. <TextBlock Text="Slide down to explore" FontSize="12"
  65. Foreground="#80FFFFFF" HorizontalAlignment="Center" />
  66. </StackPanel>
  67. </Border>
  68. <Border Margin="14,12" CornerRadius="12">
  69. <Border.Background>
  70. <LinearGradientBrush StartPoint="0%,0%" EndPoint="100%,100%">
  71. <GradientStop Color="#0C1A1F" Offset="0" />
  72. <GradientStop Color="#0891B2" Offset="1" />
  73. </LinearGradientBrush>
  74. </Border.Background>
  75. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Spacing="10">
  76. <TextBlock Text="02" FontSize="64" FontWeight="Bold"
  77. Foreground="White" HorizontalAlignment="Center" LetterSpacing="-2" />
  78. <TextBlock Text="Ephemeral Blue" FontSize="18" FontWeight="SemiBold"
  79. Foreground="#BAF0FA" HorizontalAlignment="Center" />
  80. <TextBlock Text="Vertical PageSlide in action" FontSize="12"
  81. Foreground="#80FFFFFF" HorizontalAlignment="Center" />
  82. </StackPanel>
  83. </Border>
  84. <Border Margin="14,12" CornerRadius="12">
  85. <Border.Background>
  86. <LinearGradientBrush StartPoint="0%,0%" EndPoint="100%,100%">
  87. <GradientStop Color="#0A1F18" Offset="0" />
  88. <GradientStop Color="#059669" Offset="1" />
  89. </LinearGradientBrush>
  90. </Border.Background>
  91. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Spacing="10">
  92. <TextBlock Text="03" FontSize="64" FontWeight="Bold"
  93. Foreground="White" HorizontalAlignment="Center" LetterSpacing="-2" />
  94. <TextBlock Text="Forest Forms" FontSize="18" FontWeight="SemiBold"
  95. Foreground="#A7F3D0" HorizontalAlignment="Center" />
  96. <TextBlock Text="Swipe up or down on touch screens" FontSize="12"
  97. Foreground="#80FFFFFF" HorizontalAlignment="Center" />
  98. </StackPanel>
  99. </Border>
  100. <Border Margin="14,12" CornerRadius="12">
  101. <Border.Background>
  102. <LinearGradientBrush StartPoint="0%,0%" EndPoint="100%,100%">
  103. <GradientStop Color="#1F1208" Offset="0" />
  104. <GradientStop Color="#D97706" Offset="1" />
  105. </LinearGradientBrush>
  106. </Border.Background>
  107. <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center" Spacing="10">
  108. <TextBlock Text="04" FontSize="64" FontWeight="Bold"
  109. Foreground="White" HorizontalAlignment="Center" LetterSpacing="-2" />
  110. <TextBlock Text="Golden Hour" FontSize="18" FontWeight="SemiBold"
  111. Foreground="#FDE68A" HorizontalAlignment="Center" />
  112. <TextBlock Text="Switch transitions in the panel" FontSize="12"
  113. Foreground="#80FFFFFF" HorizontalAlignment="Center" />
  114. </StackPanel>
  115. </Border>
  116. </Carousel>
  117. </Border>
  118. </DockPanel>
  119. </UserControl>