BackgroundDocumentContent.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <UserControl x:Class="PDF_Office.Views.EditTools.Background.BackgroundDocumentContent"
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:background="clr-namespace:PDF_Office.ViewModels.EditTools.Background" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" d:DataContext="{d:DesignInstance Type=background:BackgroundDocumentContentViewModel}"
  8. mc:Ignorable="d"
  9. d:DesignHeight="720"
  10. d:DesignWidth="1020" >
  11. <Grid Height="720" Width="1020">
  12. <ContentControl
  13. x:Name="PDFViewerContent"
  14. HorizontalAlignment="Stretch"
  15. prism:RegionManager.RegionName="{Binding ViewerRegionName}" />
  16. <Border CornerRadius="4" Background="#323232" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="41,0,0,25" Height="53" Width="93" Panel.ZIndex="1" >
  17. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" >
  18. <Grid>
  19. <Button Name="ShowInputIndexBoxBtn" Background="Transparent" BorderThickness="0" Padding="0">
  20. <Label Content="{Binding CurrentPageIndex, Mode=TwoWay}" Foreground="White" FontSize="20"></Label>
  21. <i:Interaction.Triggers>
  22. <i:EventTrigger EventName="MouseDoubleClick">
  23. <i:InvokeCommandAction Command="{Binding ShowInputIndexBoxCommand}" CommandParameter="{Binding ElementName=ShowInputIndexBoxBtn}"/>
  24. </i:EventTrigger>
  25. </i:Interaction.Triggers>
  26. </Button>
  27. <TextBox Name="CurrentPageIndexBox" Visibility="{Binding InputIndexBoxVisible}" KeyDown="CurrentPageIndexBox_KeyDown" VerticalContentAlignment="Center">
  28. </TextBox>
  29. </Grid>
  30. <TextBlock Text="/" Foreground="White" FontSize="20" VerticalAlignment="Center" Margin="2,0,2,0"></TextBlock>
  31. <TextBlock Text="{Binding PageRangeNumber, Mode=TwoWay}" FontSize="20" Foreground="White" VerticalAlignment="Center"></TextBlock>
  32. </StackPanel>
  33. </Border>
  34. </Grid>
  35. </UserControl>