HomePageWatermarkCreateBaseContent.xaml 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageWatermark.HomePageWatermarkCreateBaseContent"
  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. prism:ViewModelLocator.AutoWireViewModel="True"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:watermark="clr-namespace:PDF_Office.ViewModels.EditTools.Watermark" d:DataContext="{d:DesignInstance Type=watermark:WatermarkCreateBaseContentViewModel}"
  8. mc:Ignorable="d"
  9. d:DesignHeight="720"
  10. d:DesignWidth="260" >
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="50"></RowDefinition>
  14. <RowDefinition></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <Grid Grid.Row="0" Visibility="{Binding CreateBaseVisible, Mode=TwoWay}">
  17. <Button Height="24" Width="90" HorizontalAlignment="Left" Margin="16,0,0,0" Command="{Binding EnterTemplateListCommand}">
  18. <StackPanel Orientation="Horizontal">
  19. <TextBlock Text="&lt;" Margin="0,0,9,0" FontSize="16"></TextBlock>
  20. <TextBlock Text="创建水印" FontSize="16"></TextBlock>
  21. </StackPanel>
  22. </Button>
  23. <Button Height="20" Width="64" Margin="0,0,16,0" HorizontalAlignment="Right" Command="{Binding SaveToTemplateListCommand}">
  24. <StackPanel>
  25. <TextBlock Text="保存至模板" Foreground="#18A0FB"></TextBlock>
  26. <Rectangle Height="1" Fill="#18A0FB"></Rectangle>
  27. </StackPanel>
  28. </Button>
  29. </Grid>
  30. <Grid Grid.Row="0" Visibility="{Binding EditBaseVisible, Mode=TwoWay}">
  31. <Button Height="24" Width="90" HorizontalAlignment="Left" Margin="16,0,0,0" Command="{Binding EnterTemplateListCommand}">
  32. <StackPanel Orientation="Horizontal">
  33. <TextBlock Text="&lt;" Margin="0,0,9,0" FontSize="16"></TextBlock>
  34. <TextBlock Text="编辑模板" FontSize="16"></TextBlock>
  35. </StackPanel>
  36. </Button>
  37. <Button Height="20" Width="64" Margin="0,0,16,0" HorizontalAlignment="Right" Command="{Binding SaveToCurrentTemplateListCommand}">
  38. <StackPanel>
  39. <TextBlock Text="保存" Foreground="#18A0FB"></TextBlock>
  40. <Rectangle Height="1" Fill="#18A0FB"></Rectangle>
  41. </StackPanel>
  42. </Button>
  43. </Grid>
  44. <ScrollViewer Grid.Row="1">
  45. <Grid Grid.Row="1">
  46. <Grid.RowDefinitions>
  47. <RowDefinition Height="Auto"></RowDefinition>
  48. <RowDefinition></RowDefinition>
  49. </Grid.RowDefinitions>
  50. <Grid Grid.Row="0" Margin="16,0,16,0" Visibility="{Binding SelectContentVisibility}" Height="32">
  51. <Grid.ColumnDefinitions>
  52. <ColumnDefinition></ColumnDefinition>
  53. <ColumnDefinition></ColumnDefinition>
  54. </Grid.ColumnDefinitions>
  55. <Button Name="HomePageWatermarkCreateTextContent" Grid.Column="0" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=HomePageWatermarkCreateTextContent}">
  56. <StackPanel Orientation="Vertical">
  57. <TextBlock Text="文本" FontSize="18"></TextBlock>
  58. </StackPanel>
  59. </Button>
  60. <Button Grid.Column="1" Name="HomePageWatermarkCreateFileContent" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=HomePageWatermarkCreateFileContent}">
  61. <StackPanel Orientation="Vertical" >
  62. <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
  63. </StackPanel>
  64. </Button>
  65. </Grid>
  66. <Grid Grid.Row="1">
  67. <ContentControl prism:RegionManager.RegionName="{Binding WatermarkCreateRegionName}" Visibility="{Binding WatermarkCreateVisible}"></ContentControl>
  68. </Grid>
  69. </Grid>
  70. </ScrollViewer>
  71. </Grid>
  72. </UserControl>