BatesDocumentContent.xaml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <UserControl x:Class="PDF_Master.Views.EditTools.Bates.BatesDocumentContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. prism:ViewModelLocator.AutoWireViewModel="True"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. mc:Ignorable="d"
  10. d:DesignHeight="720"
  11. d:DesignWidth="1020" >
  12. <UserControl.Resources>
  13. <Style TargetType="Button" x:Key="btn">
  14. <Style.Triggers>
  15. <Trigger Property="IsMouseOver" Value="True">
  16. <Setter Property="Background" Value="Transparent"></Setter>
  17. </Trigger>
  18. </Style.Triggers>
  19. </Style>
  20. </UserControl.Resources>
  21. <Grid Background="SkyBlue">
  22. <ContentControl
  23. x:Name="PDFViewerContent"
  24. HorizontalAlignment="Stretch"
  25. prism:RegionManager.RegionName="{Binding ViewerRegionName}" />
  26. <Border CornerRadius="4" Background="#323232" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="41,0,0,25" Height="53" Width="93" Panel.ZIndex="1" >
  27. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" >
  28. <Grid>
  29. <Button Name="ShowInputIndexBoxBtn" Background="Transparent" BorderThickness="0" Padding="0" Style="{StaticResource btn}">
  30. <Label Content="{Binding CurrentPageIndex, Mode=TwoWay}" Foreground="White" FontSize="20"></Label>
  31. <i:Interaction.Triggers>
  32. <i:EventTrigger EventName="MouseDoubleClick">
  33. <i:InvokeCommandAction Command="{Binding ShowInputIndexBoxCommand}" CommandParameter="{Binding ElementName=ShowInputIndexBoxBtn}"/>
  34. </i:EventTrigger>
  35. </i:Interaction.Triggers>
  36. </Button>
  37. <TextBox Name="CurrentPageIndexBox" Visibility="{Binding InputIndexBoxVisible}" KeyDown="CurrentPageIndexBox_KeyDown" VerticalContentAlignment="Center">
  38. </TextBox>
  39. </Grid>
  40. <TextBlock Text="/" Foreground="White" FontSize="20" VerticalAlignment="Center" Margin="2,0,2,0"></TextBlock>
  41. <TextBlock Text="{Binding PageRangeNumber, Mode=TwoWay}" FontSize="20" Foreground="White" VerticalAlignment="Center"></TextBlock>
  42. </StackPanel>
  43. </Border>
  44. </Grid>
  45. </UserControl>