PromotionContent.xaml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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. SizeChanged="UserControl_SizeChanged"
  11. mc:Ignorable="d">
  12. <UserControl.Resources>
  13. <ResourceDictionary>
  14. <ResourceDictionary.MergedDictionaries>
  15. <ResourceDictionary Source="../../Styles/ListViewStyle.xaml" />
  16. <ResourceDictionary Source="../../Styles/ExpanderStyle.xaml" />
  17. </ResourceDictionary.MergedDictionaries>
  18. <DataTemplate x:Key="PromotionDataTemplate">
  19. <StackPanel
  20. Margin="0,10,0,10"
  21. Background="White"
  22. Cursor="Hand"
  23. Orientation="Horizontal">
  24. <Image
  25. Width="16"
  26. Height="16"
  27. Margin="0,0,10,0"
  28. Source="{Binding ImagePath}" />
  29. <TextBlock
  30. FontSize="14"
  31. Foreground="#6B6F7D"
  32. Text="{Binding Content}" />
  33. </StackPanel>
  34. </DataTemplate>
  35. </ResourceDictionary>
  36. </UserControl.Resources>
  37. <ScrollViewer VerticalScrollBarVisibility="Auto">
  38. <StackPanel Background="{StaticResource color.sys.layout.mg}">
  39. <Expander
  40. x:Name="PDFProSeriesExpander"
  41. Margin="20,20,0,0"
  42. Style="{StaticResource PromotionExpanderStyle}">
  43. <Expander.Header>
  44. <Grid Name="GridHeader" HorizontalAlignment="Center">
  45. <TextBlock
  46. FontSize="12"
  47. Foreground="#8F96A7"
  48. Text="PDF Pro Series" />
  49. </Grid>
  50. </Expander.Header>
  51. <Border CornerRadius="4">
  52. <Grid Name="GroupPDFProSeries">
  53. <ListView
  54. x:Name="PDFProListview"
  55. MinWidth="0"
  56. HorizontalAlignment="Stretch"
  57. BorderThickness="0"
  58. ItemContainerStyle="{StaticResource EmptyListViewItem}"
  59. ItemTemplate="{StaticResource PromotionDataTemplate}" />
  60. </Grid>
  61. </Border>
  62. </Expander>
  63. <Expander
  64. x:Name="OthersExpander"
  65. Margin="20,20,0,0"
  66. Style="{StaticResource PromotionExpanderStyle}">
  67. <Expander.Header>
  68. <Grid Name="GridHeaderOthers" HorizontalAlignment="Center">
  69. <TextBlock
  70. FontSize="12"
  71. Foreground="#8F96A7"
  72. Text="Others" />
  73. </Grid>
  74. </Expander.Header>
  75. <Border CornerRadius="4">
  76. <Grid Name="GridGroupOthers">
  77. <ListView
  78. x:Name="OthersListview"
  79. MinWidth="0"
  80. HorizontalAlignment="Stretch"
  81. BorderThickness="0"
  82. ItemContainerStyle="{StaticResource EmptyListViewItem}"
  83. ItemTemplate="{StaticResource PromotionDataTemplate}" />
  84. </Grid>
  85. </Border>
  86. </Expander>
  87. <Rectangle
  88. x:Name="promtionRect"
  89. Width="216"
  90. Height="216"
  91. Margin="0,8,0,0"
  92. Fill="#EBEBEB"
  93. RadiusX="8"
  94. RadiusY="8" />
  95. </StackPanel>
  96. </ScrollViewer>
  97. </UserControl>