123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <UserControl
- x:Class="PDF_Master.Views.Dialog.Redaction.PageMarkDialog"
- 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: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="296"
- d:DataContext="{d:DesignInstance Type=redaction:PageMarkDialogViewModel}"
- d:DesignHeight="450"
- d:DesignWidth="800"
- prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Background="{StaticResource color.sys.layout.anti}"
- mc:Ignorable="d">
- <cus:DialogContent Header="Mark Page Range">
- <StackPanel Margin="16,0">
- <RadioButton
- Height="22"
- VerticalContentAlignment="Center"
- Command="{Binding CheckedCommand}"
- CommandParameter="Current"
- Content="Mark current page"
- IsChecked="True" />
- <RadioButton
- Height="22"
- Margin="0,8"
- VerticalContentAlignment="Center"
- Command="{Binding CheckedCommand}"
- CommandParameter="All"
- Content="Mark all page" />
- <RadioButton
- Height="22"
- VerticalContentAlignment="Center"
- Command="{Binding CheckedCommand}"
- CommandParameter="Odd"
- Content="Mark odd page" />
- <RadioButton
- Height="22"
- Margin="0,8"
- VerticalContentAlignment="Center"
- Command="{Binding CheckedCommand}"
- CommandParameter="Even"
- Content="Mark even page" />
- <RadioButton
- Name="RbtnCustomPage"
- Height="22"
- VerticalContentAlignment="Center"
- Command="{Binding CheckedCommand}"
- CommandParameter="Custom"
- Content="Mark specific page range" />
- <StackPanel
- Margin="0,6,0,0"
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <cus:TextBoxEx
- Width="228"
- Height="32"
- CornerRadius="4"
- IsEnabled="{Binding ElementName=RbtnCustomPage, Path=IsChecked}"
- PlaceholderText="e.g. 1,3-5,10"
- PreviewKeyDown="TextBoxEx_PreviewKeyDown"
- Text="{Binding CustomPage, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
- <TextBlock
- Name="TBPageCount"
- Margin="8,0,0,0"
- VerticalAlignment="Center"
- FocusVisualStyle="{x:Null}"
- Focusable="True"
- Text="{Binding PageCount}" />
- </StackPanel>
- </StackPanel>
- <cus:DialogContent.BottmBar>
- <StackPanel VerticalAlignment="Center">
- <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>
- </StackPanel>
- </cus:DialogContent.BottmBar>
- </cus:DialogContent>
- </UserControl>
|