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

            </Expander>

            <Expander
                x:Name="OthersExpander"
                Margin="20,20,0,0"
                Style="{StaticResource PromotionExpanderStyle}">
                <Expander.Header>
                    <Grid Name="GridHeaderOthers" HorizontalAlignment="Center">
                        <TextBlock
                            FontSize="12"
                            Foreground="#8F96A7"
                            Text="Others" />
                    </Grid>
                </Expander.Header>
                <Border CornerRadius="4">
                    <Grid Name="GridGroupOthers">
                        <ListView
                            x:Name="OthersListview"
                            MinWidth="0"
                            HorizontalAlignment="Stretch"
                            BorderThickness="0"
                            ItemContainerStyle="{StaticResource EmptyListViewItem}"
                            ItemTemplate="{StaticResource PromotionDataTemplate}" />
                    </Grid>
                </Border>

            </Expander>
            <Rectangle
                x:Name="promtionRect"
                Width="216"
                Height="216"
                Margin="0,8,0,0"
                Fill="#EBEBEB"
                RadiusX="8"
                RadiusY="8" />
        </StackPanel>
    </ScrollViewer>
</UserControl>