WatermarkDocumentContent.xaml 2.6 KB

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