WatermarkCreateBaseContent.xaml 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <UserControl x:Class="PDF_Master.Views.EditTools.Watermark.WatermarkCreateBaseContent"
  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_Master.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="40"></RowDefinition>
  14. <RowDefinition Height="Auto"></RowDefinition>
  15. <RowDefinition></RowDefinition>
  16. </Grid.RowDefinitions>
  17. <Grid Grid.Row="0" Visibility="{Binding CreateBaseVisible, Mode=TwoWay}">
  18. <Button Height="24" Width="90" HorizontalAlignment="Left" Margin="16,0,0,0" Command="{Binding EnterTemplateListCommand}">
  19. <StackPanel Orientation="Horizontal">
  20. <TextBlock Text="&lt;" Margin="0,0,9,0" FontSize="16"></TextBlock>
  21. <TextBlock Text="创建水印" FontSize="16"></TextBlock>
  22. </StackPanel>
  23. </Button>
  24. <Button Height="20" Width="64" Margin="0,0,16,0" HorizontalAlignment="Right" Command="{Binding SaveToTemplateListCommand}">
  25. <StackPanel>
  26. <TextBlock Text="保存至模板" Foreground="#18A0FB"></TextBlock>
  27. <Rectangle Height="1" Fill="#18A0FB"></Rectangle>
  28. </StackPanel>
  29. </Button>
  30. </Grid>
  31. <Grid Grid.Row="0" Visibility="{Binding EditBaseVisible, Mode=TwoWay}">
  32. <Button Height="24" Width="90" HorizontalAlignment="Left" Margin="16,0,0,0" Command="{Binding EnterTemplateListCommand}">
  33. <StackPanel Orientation="Horizontal">
  34. <TextBlock Text="&lt;" Margin="0,0,9,0" FontSize="16"></TextBlock>
  35. <TextBlock Text="编辑模板" FontSize="16"></TextBlock>
  36. </StackPanel>
  37. </Button>
  38. <Button Height="20" Width="64" Margin="0,0,16,0" HorizontalAlignment="Right" Command="{Binding SaveToCurrentTemplateListCommand}">
  39. <StackPanel>
  40. <TextBlock Text="保存" Foreground="#18A0FB"></TextBlock>
  41. <Rectangle Height="1" Fill="#18A0FB"></Rectangle>
  42. </StackPanel>
  43. </Button>
  44. </Grid>
  45. <Grid Grid.Row="1" Margin="16,0,16,0" Visibility="{Binding SelectContentVisibility}" Height="48">
  46. <Grid.ColumnDefinitions>
  47. <ColumnDefinition></ColumnDefinition>
  48. <ColumnDefinition></ColumnDefinition>
  49. </Grid.ColumnDefinitions>
  50. <Button Name="WatermarkCreateTextContent" Grid.Column="0" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=WatermarkCreateTextContent}">
  51. <StackPanel Orientation="Vertical">
  52. <TextBlock Text="文本" FontSize="18"></TextBlock>
  53. </StackPanel>
  54. </Button>
  55. <Button Grid.Column="1" Name="WatermarkCreateFileContent" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=WatermarkCreateFileContent}">
  56. <StackPanel Orientation="Vertical" >
  57. <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
  58. </StackPanel>
  59. </Button>
  60. </Grid>
  61. <Grid Grid.Row="2">
  62. <ContentControl prism:RegionManager.RegionName="{Binding WatermarkCreateRegionName}" Visibility="{Binding WatermarkCreateVisible}"></ContentControl>
  63. </Grid>
  64. </Grid>
  65. </UserControl>