WatermarkContent.xaml 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <UserControl x:Class="PDF_Master.Views.EditTools.Watermark.WatermarkContent"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:watermark="clr-namespace:PDF_Master.ViewModels.EditTools.Watermark" d:DataContext="{d:DesignInstance Type=watermark:WatermarkContentViewModel}"
  7. mc:Ignorable="d"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. d:DesignHeight="760"
  10. d:DesignWidth="1280">
  11. <UserControl.Resources>
  12. <ResourceDictionary>
  13. <ResourceDictionary.MergedDictionaries>
  14. <ResourceDictionary Source="../../../Styles/CustomBtnStyle.xaml"/>
  15. </ResourceDictionary.MergedDictionaries>
  16. </ResourceDictionary>
  17. </UserControl.Resources>
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="40"></RowDefinition>
  21. <RowDefinition></RowDefinition>
  22. </Grid.RowDefinitions>
  23. <Grid Grid.Row="0" Background="#FFFFFF">
  24. <Border x:Name="ToolsBorder" BorderBrush="#1A000000" BorderThickness="0,1,0,1" Height="40">
  25. <WrapPanel HorizontalAlignment="Center" Height="40">
  26. <Button Style="{StaticResource InsideBarBtnStyle }">
  27. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  28. <StackPanel Margin="0,0,8,0">
  29. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  30. </StackPanel >
  31. <TextBlock Text="添加水印" VerticalAlignment="Center"></TextBlock>
  32. </StackPanel>
  33. </Button>
  34. <Button Style="{StaticResource InsideBarBtnStyle }" Command="{Binding DeleteWatermarkCommand}">
  35. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  36. <StackPanel Margin="0,0,8,0">
  37. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  38. </StackPanel >
  39. <TextBlock Text="移除" VerticalAlignment="Center"></TextBlock>
  40. </StackPanel>
  41. </Button>
  42. <Label Height="10" Width="1" Background="LightGray"></Label>
  43. <Button Style="{StaticResource InsideBarBtnStyle }" Command="{Binding BatchWatermarkCommand}">
  44. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  45. <StackPanel Margin="0,0,8,0">
  46. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  47. </StackPanel >
  48. <TextBlock Text="批量" VerticalAlignment="Center"></TextBlock>
  49. </StackPanel>
  50. </Button>
  51. </WrapPanel>
  52. </Border>
  53. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  54. <Button Content="应用" Height="24" Width="44" Command="{Binding ConfirmEditToolCommand}"></Button>
  55. <Button Content="关闭" Height="24" Width="44" Margin="16,0,16,0" Command="{Binding CloseEditToolCommand}"></Button>
  56. </StackPanel>
  57. </Grid>
  58. <Grid Grid.Row="1" >
  59. <Grid.ColumnDefinitions>
  60. <ColumnDefinition></ColumnDefinition>
  61. <ColumnDefinition Width="260"></ColumnDefinition>
  62. </Grid.ColumnDefinitions>
  63. <Grid Grid.Column="0" Background="#E7E9EC" >
  64. <ContentControl prism:RegionManager.RegionName="{Binding WatermarkDocumentRegionName}" Visibility="{Binding WatermarkDocumentVisible}"></ContentControl>
  65. </Grid>
  66. <Grid Grid.Column="1" Background="#F3F3F3">
  67. <ContentControl prism:RegionManager.RegionName="{Binding WatermarkSettingsRegionName}" Visibility="{Binding WatermarkSettingsVisible}"></ContentControl>
  68. </Grid>
  69. </Grid>
  70. </Grid>
  71. </UserControl>