WatermarkContent.xaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <UserControl x:Class="PDF_Office.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:background="clr-namespace:PDF_Office.ViewModels.EditTools.Background" d:DataContext="{d:DesignInstance Type=background:BackgroundContentViewModel}"
  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 }" >
  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 }" >
  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" ></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. <Border Height="64" Width="293" HorizontalAlignment="Center" VerticalAlignment="Bottom" Panel.ZIndex="1" Margin="9" Background="#323232" CornerRadius="4">
  65. <Grid>
  66. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  67. <StackPanel Orientation="Horizontal">
  68. <TextBlock Text="-" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
  69. <TextBlock Text="+" FontSize="20" Foreground="White" Margin="0,0,39,0"></TextBlock>
  70. </StackPanel>
  71. <StackPanel Orientation="Horizontal">
  72. <TextBlock Text="1" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
  73. <TextBlock Text="/" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
  74. <TextBlock Text="20" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
  75. </StackPanel>
  76. <StackPanel Orientation="Horizontal">
  77. <TextBlock Text="↑" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
  78. <TextBlock Text="↓" FontSize="20" Foreground="White"></TextBlock>
  79. </StackPanel>
  80. </StackPanel>
  81. </Grid>
  82. </Border>
  83. </Grid>
  84. <Grid Grid.Column="1" Background="#F3F3F3">
  85. <ContentControl prism:RegionManager.RegionName="{Binding WatermarkSettingsRegionName}" Visibility="{Binding WatermarkSettingsVisible}"></ContentControl>
  86. </Grid>
  87. </Grid>
  88. </Grid>
  89. </UserControl>