123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <UserControl x:Class="PDF_Office.Views.EditTools.Background.BackgroundDocumentContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- 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:background="clr-namespace:PDF_Office.ViewModels.EditTools.Background" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" d:DataContext="{d:DesignInstance Type=background:BackgroundDocumentContentViewModel}"
- 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>
- <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>
|