WatermarkDocumentContent.xaml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <UserControl x:Class="PDF_Master.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_Master.ViewModels.EditTools.Watermark" d:DataContext="{d:DesignInstance Type=watermark:WatermarkDocumentContentViewModel}"
  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>