PromotionContent.xaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <UserControl
  2. x:Class="PDF_Office.Views.HomePanel.PromotionContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Office.Views.HomePanel"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800"
  10. Background="{StaticResource color.sys.layout.mg}"
  11. SizeChanged="UserControl_SizeChanged"
  12. mc:Ignorable="d">
  13. <UserControl.Resources>
  14. <ResourceDictionary>
  15. <ResourceDictionary.MergedDictionaries>
  16. <ResourceDictionary Source="../../Styles/ListViewStyle.xaml" />
  17. <ResourceDictionary Source="../../Styles/ExpanderStyle.xaml" />
  18. </ResourceDictionary.MergedDictionaries>
  19. <DataTemplate x:Key="PromotionDataTemplate">
  20. <StackPanel
  21. Height="32"
  22. Background="Transparent"
  23. Cursor="Hand"
  24. Orientation="Horizontal">
  25. <Image
  26. Width="16"
  27. Height="16"
  28. Margin="0,0,10,0"
  29. Source="{Binding ImagePath}" />
  30. <TextBlock
  31. VerticalAlignment="Center"
  32. FontSize="14"
  33. Foreground="{StaticResource color.sys.text.neutral.lv2}"
  34. Text="{Binding Content}" />
  35. </StackPanel>
  36. </DataTemplate>
  37. </ResourceDictionary>
  38. </UserControl.Resources>
  39. <ScrollViewer VerticalScrollBarVisibility="Auto">
  40. <Grid>
  41. <StackPanel Margin="0,0,0,252">
  42. <Expander
  43. x:Name="PDFProSeriesExpander"
  44. Margin="20,20,0,0"
  45. IsExpanded="True"
  46. Style="{StaticResource PromotionExpanderStyle}">
  47. <Expander.Header>
  48. <Grid
  49. Name="GridHeader"
  50. Height="32"
  51. HorizontalAlignment="Center">
  52. <TextBlock VerticalAlignment="Center" Text="PDF Pro Series" />
  53. </Grid>
  54. </Expander.Header>
  55. <Border CornerRadius="4">
  56. <Grid Name="GroupPDFProSeries">
  57. <ListView
  58. x:Name="PDFProListview"
  59. MinWidth="0"
  60. HorizontalAlignment="Stretch"
  61. Background="Transparent"
  62. BorderThickness="0"
  63. ItemContainerStyle="{StaticResource EmptyListViewItem}"
  64. ItemTemplate="{StaticResource PromotionDataTemplate}" />
  65. </Grid>
  66. </Border>
  67. </Expander>
  68. <Expander
  69. x:Name="OthersExpander"
  70. Margin="20,8,0,0"
  71. IsExpanded="True"
  72. Style="{StaticResource PromotionExpanderStyle}">
  73. <Expander.Header>
  74. <Grid
  75. Name="GridHeaderOthers"
  76. Height="32"
  77. HorizontalAlignment="Center">
  78. <TextBlock VerticalAlignment="Center" Text="Others" />
  79. </Grid>
  80. </Expander.Header>
  81. <Border CornerRadius="4">
  82. <Grid Name="GridGroupOthers">
  83. <ListView
  84. x:Name="OthersListview"
  85. MinWidth="0"
  86. HorizontalAlignment="Stretch"
  87. Background="Transparent"
  88. BorderThickness="0"
  89. ItemContainerStyle="{StaticResource EmptyListViewItem}"
  90. ItemTemplate="{StaticResource PromotionDataTemplate}" />
  91. </Grid>
  92. </Border>
  93. </Expander>
  94. </StackPanel>
  95. <Rectangle
  96. x:Name="promtionRect"
  97. Width="216"
  98. Height="216"
  99. Margin="0,23"
  100. VerticalAlignment="Bottom"
  101. Fill="#EBEBEB"
  102. RadiusX="8"
  103. RadiusY="8" />
  104. </Grid>
  105. </ScrollViewer>
  106. </UserControl>