| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <UserControl x:Class="ivf_tl_Manage.UserControls.PaginationUserControl"
- 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:ivf_tl_Manage.UserControls"
- xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
- mc:Ignorable="d"
- FontFamily="{StaticResource sourceHan}"
- x:Name="_PaginationUserControl">
- <Grid Background="Transparent">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <StackPanel Orientation="Horizontal" Grid.Column="0" Margin="{Binding ElementName=_PaginationUserControl,Path=HeadMargin}">
- <TextBlock VerticalAlignment="Center" FontWeight="Medium" Foreground="#707070" FontSize="16" >
- <Run Text="{DynamicResource 0238}"/><Run Foreground="#4d4d4d" Text="{Binding ElementName=_PaginationUserControl,Path=PageSize,StringFormat=' {0} ' }"/><Run Text="{Binding ElementName=_PaginationUserControl,Path=PageInfoString}"/>
- </TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right" Margin="{Binding ElementName=_PaginationUserControl,Path=LastMargin}">
- <TextBlock VerticalAlignment="Center"
- FontWeight="Medium" Foreground="#707070" FontSize="18">
- <Run Text="{DynamicResource 0054}"/><Run Text="{Binding ElementName=_PaginationUserControl,Path=PageCount,StringFormat=' {0} '}" Foreground="#4d4d4d"/><Run Text="{DynamicResource 0053}"/><Run Foreground="#4d4d4d" Text="{Binding ElementName=_PaginationUserControl,Path=DataCount,StringFormat='/ {0} ' }"/><Run Text="{Binding ElementName=_PaginationUserControl,Path=PageUnit,StringFormat={}{0},}"/><Run Text="{DynamicResource 0052}"/>
- </TextBlock>
- <customControl:TextBoxCustom x:Name="jumpPage_TextBox" FontSize="18" Margin="5 0 5 0" TextMargin="0" Width="61" Height="42" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="Transparent"/>
- <TextBlock VerticalAlignment="Center" Text="{DynamicResource 0053}" FontWeight="Medium" Foreground="#707070" FontSize="18"/>
- <Button Click="JumpPage_Click" Width="0" Height="0" IsDefault="True"/>
- <customControl:ButtonCornerRadius Margin="20 0 0 0" Padding="5 0 10 0" Height="42" Click="PageFirst_Click">
- <customControl:ButtonCornerRadius.Content>
- <StackPanel Orientation="Horizontal">
- <Image VerticalAlignment="Center" Width="22" Height="22" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageFirst1.png"/>
- <TextBlock Margin="5 0 0 0" VerticalAlignment="Center" TextAlignment="Center" Text="{DynamicResource 0048}" FontSize="18" Foreground="White" FontWeight="Medium"/>
- </StackPanel>
- </customControl:ButtonCornerRadius.Content>
- </customControl:ButtonCornerRadius>
- <customControl:ButtonCornerRadius Margin="10 0 0 0" Width="121" Height="42" Click="PagePre_Click">
- <customControl:ButtonCornerRadius.Content>
- <StackPanel Orientation="Horizontal">
- <Image VerticalAlignment="Center" Width="22" Height="22" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PagePre1.png"/>
- <TextBlock Margin="5 0 0 0" VerticalAlignment="Center" TextAlignment="Center" Text="{DynamicResource 0049}" FontSize="18" Foreground="White" FontWeight="Medium"/>
- </StackPanel>
- </customControl:ButtonCornerRadius.Content>
- </customControl:ButtonCornerRadius>
- <!--<customControl:ButtonImage Margin="20 0 0 0" Width="103" Height="42" Click="PageFirst_Click" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageFirstMouseOver.png" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageFirst.png"/>
- <customControl:ButtonImage Margin="10 0 0 0" Width="121" Height="42" Click="PagePre_Click" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PagePreMouseOver.png" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PagePre.png"/>-->
- <ListBox x:Name="pageListBox" Margin="10 0 0 0" MaxWidth="235" Height="42" Style="{StaticResource ListBoxStylePage}" Background="#E5E9EF" FontWeight="Medium" Foreground="#7B98C0" FontSize="18" SelectionChanged="ListBox_SelectionChanged">
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <StackPanel Orientation="Horizontal"/>
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- </ListBox>
- <customControl:ButtonCornerRadius Padding="10 0 10 0" Margin="10 0 0 0" Height="42" Click="PageNext_Click">
- <customControl:ButtonCornerRadius.Content>
- <StackPanel Orientation="Horizontal">
- <TextBlock Margin="0 0 5 0" VerticalAlignment="Center" TextAlignment="Center" Text="{DynamicResource 0050}" FontSize="18" Foreground="White" FontWeight="Medium"/>
- <Image VerticalAlignment="Center" Width="22" Height="22" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageNext1.png"/>
- </StackPanel>
- </customControl:ButtonCornerRadius.Content>
- </customControl:ButtonCornerRadius>
- <customControl:ButtonCornerRadius Margin="10 0 0 0" Padding="10 0 5 0" Height="42" Click="PageLast_Click">
- <customControl:ButtonCornerRadius.Content>
- <StackPanel Orientation="Horizontal">
- <TextBlock Margin="0 0 5 0" VerticalAlignment="Center" TextAlignment="Center" Text="{DynamicResource 0051}" FontSize="18" Foreground="White" FontWeight="Medium"/>
- <Image VerticalAlignment="Center" Width="22" Height="22" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageLast1.png"/>
- </StackPanel>
- </customControl:ButtonCornerRadius.Content>
- </customControl:ButtonCornerRadius>
- <!--<customControl:ButtonImage Margin="10 0 0 0" Width="121" Height="42" Click="PageNext_Click" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageNextMouseOver.png" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageNext.png"/>
- <customControl:ButtonImage Margin="10 0 0 0" Width="103" Height="42" Click="PageLast_Click" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageLastMouseOver.png" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageLast.png"/>-->
- </StackPanel>
- </Grid>
- </UserControl>
|