12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <UserControl x:Class="PDF_Master.Views.EditTools.Watermark.WatermarkDocumentContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- 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}"
- mc:Ignorable="d"
- d:DesignHeight="720"
- d:DesignWidth="1020" >
- <UserControl.Resources>
- <Style TargetType="Button" x:Key="btn">
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="Transparent"></Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
- </UserControl.Resources>
- <Grid Background="SkyBlue">
- <ContentControl
- x:Name="PDFViewerContent"
- HorizontalAlignment="Stretch"
- prism:RegionManager.RegionName="{Binding ViewerRegionName}" />
- <Border CornerRadius="4" Background="#323232" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="41,0,0,25" Height="53" Width="93" Panel.ZIndex="1" >
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center" >
- <Grid>
- <Button Name="ShowInputIndexBoxBtn" Background="Transparent" BorderThickness="0" Padding="0" Style="{StaticResource btn}">
- <Label Content="{Binding CurrentPageIndex, Mode=TwoWay}" Foreground="White" FontSize="20"></Label>
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="MouseDoubleClick">
- <i:InvokeCommandAction Command="{Binding ShowInputIndexBoxCommand}" CommandParameter="{Binding ElementName=ShowInputIndexBoxBtn}"/>
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </Button>
- <TextBox Name="CurrentPageIndexBox" Visibility="{Binding InputIndexBoxVisible}" KeyDown="CurrentPageIndexBox_KeyDown" VerticalContentAlignment="Center">
- </TextBox>
- </Grid>
- <TextBlock Text="/" Foreground="White" FontSize="20" VerticalAlignment="Center" Margin="2,0,2,0"></TextBlock>
- <TextBlock Text="{Binding PageRangeNumber, Mode=TwoWay}" FontSize="20" Foreground="White" VerticalAlignment="Center"></TextBlock>
- </StackPanel>
- </Border>
- </Grid>
- </UserControl>
|