1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <UserControl x:Class="PDF_Office.Views.HomePanel.PromotionContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Office.Views.HomePanel"
- mc:Ignorable="d" SizeChanged="UserControl_SizeChanged"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../Styles/ListViewStyle.xaml"/>
- <ResourceDictionary Source="../../Styles/ExpanderStyle.xaml"/>
- </ResourceDictionary.MergedDictionaries>
- <DataTemplate x:Key="PromotionDataTemplate">
- <StackPanel Background="White" Orientation="Horizontal" Cursor="Hand" Margin="0,10,0,10">
- <Image Width="16" Height="16" Source="{Binding ImagePath}" Margin="0,0,10,0"/>
- <TextBlock Text="{Binding Content}" FontSize="14" Foreground="#6B6F7D"/>
- </StackPanel>
- </DataTemplate>
- </ResourceDictionary>
- </UserControl.Resources>
- <ScrollViewer VerticalScrollBarVisibility="Auto">
- <StackPanel>
- <Expander x:Name="PDFProSeriesExpander" Margin="20,20,0,0" Style="{StaticResource PromotionExpanderStyle}">
- <Expander.Header>
- <Grid Name="GridHeader" HorizontalAlignment="Center">
- <TextBlock Text="PDF Pro Series" Foreground="#8F96A7" FontSize="12"/>
- </Grid>
- </Expander.Header>
- <Border CornerRadius="4" >
- <Grid Name="GroupPDFProSeries">
- <ListView x:Name="PDFProListview" MinWidth="0" BorderThickness="0" HorizontalAlignment="Stretch" ItemTemplate="{StaticResource PromotionDataTemplate}" ItemContainerStyle="{StaticResource EmptyListViewItem}">
- </ListView>
- </Grid>
- </Border>
- </Expander>
- <Expander x:Name="OthersExpander" Margin="20,20,0,0" Style="{StaticResource PromotionExpanderStyle}">
- <Expander.Header>
- <Grid Name="GridHeaderOthers" HorizontalAlignment="Center">
- <TextBlock Text="Others" Foreground="#8F96A7" FontSize="12"/>
- </Grid>
- </Expander.Header>
- <Border CornerRadius="4">
- <Grid Name="GridGroupOthers" >
- <ListView x:Name="OthersListview" MinWidth="0" BorderThickness="0" HorizontalAlignment="Stretch" ItemTemplate="{StaticResource PromotionDataTemplate}" ItemContainerStyle="{StaticResource EmptyListViewItem}">
- </ListView>
- </Grid>
- </Border>
- </Expander>
- <Rectangle x:Name="promtionRect" Fill="#EBEBEB" Margin="0,8,0,0" Width="216" Height="216" RadiusX="8" RadiusY="8"/>
- </StackPanel>
- </ScrollViewer>
- </UserControl>
|