PaginationUserControl.xaml 7.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <UserControl x:Class="ivf_tl_Manage.UserControls.PaginationUserControl"
  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:ivf_tl_Manage.UserControls"
  7. xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
  8. mc:Ignorable="d"
  9. FontFamily="{StaticResource sourceHan}"
  10. x:Name="_PaginationUserControl">
  11. <Grid Background="Transparent">
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="auto"/>
  14. <ColumnDefinition Width="*"/>
  15. </Grid.ColumnDefinitions>
  16. <StackPanel Orientation="Horizontal" Grid.Column="0" Margin="{Binding ElementName=_PaginationUserControl,Path=HeadMargin}">
  17. <TextBlock VerticalAlignment="Center" FontWeight="Medium" Foreground="#707070" FontSize="16" >
  18. <Run Text="{DynamicResource 0238}"/><Run Foreground="#4d4d4d" Text="{Binding ElementName=_PaginationUserControl,Path=PageSize,StringFormat=' {0} ' }"/><Run Text="{Binding ElementName=_PaginationUserControl,Path=PageInfoString}"/>
  19. </TextBlock>
  20. </StackPanel>
  21. <StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Right" Margin="{Binding ElementName=_PaginationUserControl,Path=LastMargin}">
  22. <TextBlock VerticalAlignment="Center"
  23. FontWeight="Medium" Foreground="#707070" FontSize="18">
  24. <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}"/>
  25. </TextBlock>
  26. <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"/>
  27. <TextBlock VerticalAlignment="Center" Text="{DynamicResource 0053}" FontWeight="Medium" Foreground="#707070" FontSize="18"/>
  28. <Button Click="JumpPage_Click" Width="0" Height="0" IsDefault="True"/>
  29. <customControl:ButtonCornerRadius Margin="20 0 0 0" Padding="5 0 10 0" Height="42" Click="PageFirst_Click">
  30. <customControl:ButtonCornerRadius.Content>
  31. <StackPanel Orientation="Horizontal">
  32. <Image VerticalAlignment="Center" Width="22" Height="22" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageFirst1.png"/>
  33. <TextBlock Margin="5 0 0 0" VerticalAlignment="Center" TextAlignment="Center" Text="{DynamicResource 0048}" FontSize="18" Foreground="White" FontWeight="Medium"/>
  34. </StackPanel>
  35. </customControl:ButtonCornerRadius.Content>
  36. </customControl:ButtonCornerRadius>
  37. <customControl:ButtonCornerRadius Margin="10 0 0 0" Width="121" Height="42" Click="PagePre_Click">
  38. <customControl:ButtonCornerRadius.Content>
  39. <StackPanel Orientation="Horizontal">
  40. <Image VerticalAlignment="Center" Width="22" Height="22" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PagePre1.png"/>
  41. <TextBlock Margin="5 0 0 0" VerticalAlignment="Center" TextAlignment="Center" Text="{DynamicResource 0049}" FontSize="18" Foreground="White" FontWeight="Medium"/>
  42. </StackPanel>
  43. </customControl:ButtonCornerRadius.Content>
  44. </customControl:ButtonCornerRadius>
  45. <!--<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"/>
  46. <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"/>-->
  47. <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">
  48. <ListBox.ItemsPanel>
  49. <ItemsPanelTemplate>
  50. <StackPanel Orientation="Horizontal"/>
  51. </ItemsPanelTemplate>
  52. </ListBox.ItemsPanel>
  53. </ListBox>
  54. <customControl:ButtonCornerRadius Padding="10 0 10 0" Margin="10 0 0 0" Height="42" Click="PageNext_Click">
  55. <customControl:ButtonCornerRadius.Content>
  56. <StackPanel Orientation="Horizontal">
  57. <TextBlock Margin="0 0 5 0" VerticalAlignment="Center" TextAlignment="Center" Text="{DynamicResource 0050}" FontSize="18" Foreground="White" FontWeight="Medium"/>
  58. <Image VerticalAlignment="Center" Width="22" Height="22" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageNext1.png"/>
  59. </StackPanel>
  60. </customControl:ButtonCornerRadius.Content>
  61. </customControl:ButtonCornerRadius>
  62. <customControl:ButtonCornerRadius Margin="10 0 0 0" Padding="10 0 5 0" Height="42" Click="PageLast_Click">
  63. <customControl:ButtonCornerRadius.Content>
  64. <StackPanel Orientation="Horizontal">
  65. <TextBlock Margin="0 0 5 0" VerticalAlignment="Center" TextAlignment="Center" Text="{DynamicResource 0051}" FontSize="18" Foreground="White" FontWeight="Medium"/>
  66. <Image VerticalAlignment="Center" Width="22" Height="22" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PageLast1.png"/>
  67. </StackPanel>
  68. </customControl:ButtonCornerRadius.Content>
  69. </customControl:ButtonCornerRadius>
  70. <!--<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"/>
  71. <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"/>-->
  72. </StackPanel>
  73. </Grid>
  74. </UserControl>