PromotionContent.xaml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <UserControl x:Class="PDF_Office.Views.HomePanel.PromotionContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PDF_Office.Views.HomePanel"
  7. mc:Ignorable="d" SizeChanged="UserControl_SizeChanged"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <UserControl.Resources>
  10. <ResourceDictionary>
  11. <ResourceDictionary.MergedDictionaries>
  12. <ResourceDictionary Source="../../Styles/ListViewStyle.xaml"/>
  13. <ResourceDictionary Source="../../Styles/ExpanderStyle.xaml"/>
  14. </ResourceDictionary.MergedDictionaries>
  15. <DataTemplate x:Key="PromotionDataTemplate">
  16. <StackPanel Background="White" Orientation="Horizontal" Cursor="Hand" Margin="0,10,0,10">
  17. <Image Width="16" Height="16" Source="{Binding ImagePath}" Margin="0,0,10,0"/>
  18. <TextBlock Text="{Binding Content}" FontSize="14" Foreground="#6B6F7D"/>
  19. </StackPanel>
  20. </DataTemplate>
  21. </ResourceDictionary>
  22. </UserControl.Resources>
  23. <ScrollViewer VerticalScrollBarVisibility="Auto">
  24. <StackPanel>
  25. <Expander x:Name="PDFProSeriesExpander" Margin="20,20,0,0" Style="{StaticResource PromotionExpanderStyle}">
  26. <Expander.Header>
  27. <Grid Name="GridHeader" HorizontalAlignment="Center">
  28. <TextBlock Text="PDF Pro Series" Foreground="#8F96A7" FontSize="12"/>
  29. </Grid>
  30. </Expander.Header>
  31. <Border CornerRadius="4" >
  32. <Grid Name="GroupPDFProSeries">
  33. <ListView x:Name="PDFProListview" MinWidth="0" BorderThickness="0" HorizontalAlignment="Stretch" ItemTemplate="{StaticResource PromotionDataTemplate}" ItemContainerStyle="{StaticResource EmptyListViewItem}">
  34. </ListView>
  35. </Grid>
  36. </Border>
  37. </Expander>
  38. <Expander x:Name="OthersExpander" Margin="20,20,0,0" Style="{StaticResource PromotionExpanderStyle}">
  39. <Expander.Header>
  40. <Grid Name="GridHeaderOthers" HorizontalAlignment="Center">
  41. <TextBlock Text="Others" Foreground="#8F96A7" FontSize="12"/>
  42. </Grid>
  43. </Expander.Header>
  44. <Border CornerRadius="4">
  45. <Grid Name="GridGroupOthers" >
  46. <ListView x:Name="OthersListview" MinWidth="0" BorderThickness="0" HorizontalAlignment="Stretch" ItemTemplate="{StaticResource PromotionDataTemplate}" ItemContainerStyle="{StaticResource EmptyListViewItem}">
  47. </ListView>
  48. </Grid>
  49. </Border>
  50. </Expander>
  51. <Rectangle x:Name="promtionRect" Fill="#EBEBEB" Margin="0,8,0,0" Width="216" Height="216" RadiusX="8" RadiusY="8"/>
  52. </StackPanel>
  53. </ScrollViewer>
  54. </UserControl>