123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <UserControl
- x:Class="PDF_Master.Views.Dialog.Redaction.MarkSettingDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:com="clr-namespace:PDF_Master.CustomControl.CompositeControl"
- xmlns:convert="clr-namespace:PDF_Master.DataConvert"
- xmlns:cus="clr-namespace:PDF_Master.CustomControl"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Master.Views.Dialog.Redaction"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:redaction="clr-namespace:PDF_Master.ViewModels.Dialog.Redaction"
- Width="432"
- Height="462"
- d:DataContext="{d:DesignInstance Type=redaction:MarkSettingDialogViewModel}"
- d:DesignHeight="450"
- d:DesignWidth="800"
- prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Background="{StaticResource color.sys.layout.anti}"
- mc:Ignorable="d">
- <UserControl.Resources>
- <convert:InvertBoolConvert x:Key="InvertBoolConvert" />
- </UserControl.Resources>
- <cus:DialogContent Header="Settings">
- <StackPanel Margin="16,0">
- <Grid Height="24">
- <TextBlock
- VerticalAlignment="Center"
- FontSize="12"
- Foreground="{StaticResource color.sys.text.neutral.lv2}"
- Text="Marker Color" />
- </Grid>
- <StackPanel
- Height="32"
- Margin="0,8"
- Orientation="Horizontal">
- <TextBlock
- Name="TbOurline"
- VerticalAlignment="Center"
- Text="Redaction Mark Outline Color:" />
- <com:ColorContent
- Margin="16,0,0,0"
- SelectedColor="{Binding LineColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- ShowColorList="Collapsed" />
- </StackPanel>
- <StackPanel Height="32" Orientation="Horizontal">
- <TextBlock
- Width="{Binding ElementName=TbOurline, Path=Width}"
- VerticalAlignment="Center"
- Text="Redact Area Fill Color:" />
- <com:ColorContent
- Margin="16,0,0,0"
- SelectedColor="{Binding BgColor, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- ShowColorList="Collapsed" />
- </StackPanel>
- <CheckBox
- Name="chkText"
- Margin="0,16,0,8"
- Content="Use Overlay Text"
- IsChecked="{Binding IsUseText}" />
- <Border
- Width="400"
- Height="198"
- Background="{StaticResource color.sys.layout.mg}"
- CornerRadius="4"
- IsEnabled="{Binding ElementName=chkText, Path=IsChecked, Converter={StaticResource InvertBoolConvert}}">
- <StackPanel Margin="8">
- <cus:TextBoxEx
- Height="70"
- VerticalContentAlignment="Top"
- Text="{Binding OvertText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
- <TextBlock
- Margin="0,10"
- FontSize="12"
- Foreground="{StaticResource color.sys.text.neutral.lv2}"
- Text="Font" />
- <StackPanel Orientation="Horizontal">
- <ComboBox
- Width="122.67"
- Height="32"
- ItemsSource="{Binding FontFamilys}"
- SelectedIndex="{Binding FontFamilySelectedIndex}" />
- <ComboBox
- Width="122.67"
- Height="32"
- Margin="8,0"
- ItemsSource="{Binding FontWeight}"
- SelectedIndex="{Binding FontWeightSelectedIndex}" />
- <ComboBox
- Width="122.67"
- Height="32"
- ItemsSource="{Binding FontSizes}"
- SelectedIndex="{Binding FontSizeSelectedIndex}" />
- </StackPanel>
- <StackPanel Margin="0,8,0,0" Orientation="Horizontal">
- <RadioButton
- Width="32"
- Height="32"
- Command="{Binding AlignCommand}"
- CommandParameter="Left"
- IsChecked="{Binding LeftChecked, Mode=TwoWay}"
- Style="{StaticResource RectangleRadionButtonWithCorner}" />
- <RadioButton
- Width="32"
- Height="32"
- Margin="8,0"
- Command="{Binding AlignCommand}"
- CommandParameter="Center"
- IsChecked="{Binding CenterChecked, Mode=TwoWay}"
- Style="{StaticResource RectangleRadionButtonWithCorner}" />
- <RadioButton
- Width="32"
- Height="32"
- Command="{Binding AlignCommand}"
- CommandParameter="Right"
- IsChecked="{Binding RightChecked, Mode=TwoWay}"
- Style="{StaticResource RectangleRadionButtonWithCorner}" />
- <RadioButton
- Width="32"
- Height="32"
- Margin="8,0"
- Command="{Binding AlignCommand}"
- CommandParameter="Strech"
- IsChecked="{Binding StrechChecked, Mode=TwoWay}"
- Style="{StaticResource RectangleRadionButtonWithCorner}" />
- <com:ColorContent
- Margin="16,0,0,0"
- SelectedColor="{Binding FontColor}"
- ShowColorList="Collapsed" />
- </StackPanel>
- </StackPanel>
- </Border>
- </StackPanel>
- <cus:DialogContent.BottmBar>
- <StackPanel
- Margin="16,0"
- HorizontalAlignment="Right"
- Orientation="Horizontal">
- <Button
- Width="80"
- Height="32"
- Command="{Binding OkCommand}"
- Content="Apply"
- Style="{StaticResource Btn.cta}" />
- <Button
- Width="80"
- Height="32"
- Margin="16,0,0,0"
- Command="{Binding CancelCommand}"
- Content="Cancel"
- Style="{StaticResource btn.sec}" />
- </StackPanel>
- </cus:DialogContent.BottmBar>
- </cus:DialogContent>
- </UserControl>
|