<local:MyPageRight
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:PCL" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" x:Class="PCL.PageSelectRight"
    PanScroll="{Binding ElementName=PanBack}">
    <Grid>
        <Grid x:Name="PanAllBack">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <local:MySearchBox x:Name="PanVerSearchBox" Margin="25,15,25,12" VerticalAlignment="Top"
                                Grid.Row="0" ToolTip="{DynamicResource Select.Instance.Search.ToolTip}" />
            <local:MyScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled"
                                  x:Name="PanBack" Grid.Row="1">
                <StackPanel Name="PanMain" Margin="25,2,25,10" Grid.IsSharedSizeScope="True" />
            </local:MyScrollViewer>
            <local:MyCard HorizontalAlignment="Center" VerticalAlignment="Center" Margin="40" x:Name="PanEmpty"
                          UseAnimation="False" Grid.Row="1">
                <StackPanel Margin="20,17">
                    <TextBlock Name="LabEmptyTitle" Margin="0,0,0,9" HorizontalAlignment="Center"
                               Text="{DynamicResource Select.Instance.Empty.Title}"
                               FontSize="19" UseLayoutRounding="True" SnapsToDevicePixels="True"
                               Foreground="{DynamicResource ColorBrush3}" />
                    <Rectangle HorizontalAlignment="Stretch" Height="2" Fill="{DynamicResource ColorBrush3}" />
                    <TextBlock Name="LabEmptyContent" Margin="10,15,10,5"
                               Text="{DynamicResource Select.Instance.Empty.Message}"
                               TextWrapping="Wrap" />
                    <local:MyButton Height="35" HorizontalAlignment="Center" x:Name="BtnEmptyDownload" MinWidth="140"
                                    Click="BtnDownload_Click"
                                    Text="{DynamicResource Select.Instance.Empty.Download}" Margin="0,10,0,0"
                                    Padding="13,0" ColorType="Highlight" />
                </StackPanel>
            </local:MyCard>
            <local:MyCard HorizontalAlignment="Center" VerticalAlignment="Center" Margin="40" x:Name="PanEmptySearch"
                          UseAnimation="False" Grid.Row="1">
                <StackPanel Margin="20,17">
                    <TextBlock Name="LabEmptySearchTitle" Margin="0,0,0,9" HorizontalAlignment="Center"
                               Text="{DynamicResource Select.Instance.EmptySearch.Title}"
                               FontSize="19" UseLayoutRounding="True" SnapsToDevicePixels="True"
                               Foreground="{DynamicResource ColorBrush3}" />
                    <Rectangle HorizontalAlignment="Stretch" Height="2" Fill="{DynamicResource ColorBrush3}" />
                    <TextBlock Name="LabEmptySearchContent" Margin="10,15,10,5" TextWrapping="Wrap" />
                </StackPanel>
            </local:MyCard>
        </Grid>
        <local:MyCard HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="True"
                      x:Name="PanLoad" Margin="40">
        <local:MyLoading Text="{DynamicResource Select.Instance.Loading}" Margin="20,20,20,17" x:Name="Load" HorizontalAlignment="Center"
                         Click="Load_Click"
                         VerticalAlignment="Center" IsHitTestVisible="False" AutoRun="False" />
        </local:MyCard>
    </Grid>
</local:MyPageRight>