123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <UserControl
- x:Class="PDF_Master.Views.EditTools.Redaction.RedactionContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:cus="clr-namespace:PDF_Master.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:redaction="clr-namespace:PDF_Master.ViewModels.EditTools.Redaction"
- d:DataContext="{d:DesignInstance Type=redaction:RedactionContentViewModel}"
- d:DesignHeight="760"
- d:DesignWidth="1280"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable=" d">
- <UserControl.Resources>
- <ResourceDictionary>
- <Style BasedOn="{StaticResource RectangleRadionButtonWithCorner}" TargetType="{x:Type RadioButton}">
- <Setter Property="Width" Value="auto" />
- <Setter Property="Height" Value="28" />
- <Setter Property="Margin" Value="4,6" />
- <Setter Property="Background" Value="Transparent" />
- </Style>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid Background="{StaticResource color.sys.layout.mg}">
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid>
- <TextBlock
- Margin="16,0,0,0"
- VerticalAlignment="Center"
- FontFamily="Segoe UI"
- FontSize="14"
- FontWeight="SemiBold"
- Foreground="{StaticResource color.sys.text.neutral.lv1}"
- Text="Redact" />
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <ToggleButton
- Width="auto"
- Height="28"
- Padding="4,0"
- IsChecked="True"
- Style="{StaticResource SubToolbarTgb}">
- <StackPanel Orientation="Horizontal">
- <Path
- Width="20"
- Height="20"
- Data="M0.75 4H20.75V2H0.75V4ZM0.75 11H9.75V9H0.75V11ZM9.75 18H0.75V16H9.75V18ZM13.75 6C13.1977 6 12.75 6.44771 12.75 7V17C12.75 17.5523 13.1977 18 13.75 18H19.75C20.3023 18 20.75 17.5523 20.75 17V7C20.75 6.44772 20.3023 6 19.75 6H13.75Z"
- Fill="{StaticResource color.icon.base.brand}" />
- <TextBlock
- Margin="4,0,0,0"
- VerticalAlignment="Center"
- Text="Redact Text Image" />
- </StackPanel>
- </ToggleButton>
- <Button
- Width="auto"
- Height="28"
- Margin="8,0"
- Padding="4,0"
- Command="{Binding PageRedactionCommand}"
- Style="{StaticResource subToolBar}">
- <StackPanel Orientation="Horizontal">
- <Path
- Width="20"
- Height="20"
- Data="M16.75 18H4.75V2H12.6171L16.75 6.74847V18ZM2.75 2C2.75 0.895431 3.64543 0 4.75 0H12.6171C13.1956 0 13.7458 0.250541 14.1257 0.686951L18.2586 5.43542C18.5755 5.79948 18.75 6.26584 18.75 6.74847V18C18.75 19.1046 17.8546 20 16.75 20H4.75C3.64543 20 2.75 19.1046 2.75 18V2ZM11.95 4H6.75V16H14.75V7.42857L11.95 4Z"
- Fill="{StaticResource color.icon.base.brand}" />
- <TextBlock
- Margin="4,0,0,0"
- VerticalAlignment="Center"
- Text="Redact Page" />
- </StackPanel>
- </Button>
- </StackPanel>
- <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
- <Button
- Height="24"
- Margin="8,0"
- Padding="8,0"
- Command="{Binding ApplyCommmand}"
- CommandParameter="All"
- Content="应用密文"
- Style="{StaticResource Btn.cta}" />
- <Button
- Height="24"
- Margin="8,0"
- Padding="8,0"
- Command="{Binding EraseCommand}"
- CommandParameter="All"
- Content="擦除密文"
- Style="{StaticResource Btn.cta}" />
- <Button
- Width="auto"
- Height="24"
- Margin="8,0,16,0"
- Padding="8,0"
- Command="{Binding CloseEditToolCommand}"
- Content="关闭"
- Style="{StaticResource btn.sec}" />
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1" Background="#E7E9EC">
- <Grid>
- <ContentControl prism:RegionManager.RegionName="{Binding RedactionDocumentRegionName}" />
- </Grid>
- <cus:PaginationControl
- Margin="24,24"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- CurrentPage="{Binding CurrentPage, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- PageCount="{Binding PageCount}" />
- </Grid>
- </Grid>
- </UserControl>
|