WatermarkTemplateListBaseContent.xaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <UserControl x:Class="PDF_Master.Views.EditTools.Watermark.WatermarkTemplateListBaseContent"
  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"
  8. mc:Ignorable="d"
  9. d:DesignHeight="720"
  10. d:DesignWidth="260">
  11. <Grid>
  12. <Grid.RowDefinitions>
  13. <RowDefinition Height="48"/>
  14. <RowDefinition Height="48"/>
  15. <RowDefinition/>
  16. </Grid.RowDefinitions>
  17. <Grid Grid.Row="0">
  18. <TextBlock Width="32" Height="24" Text="水印" FontSize="16" Margin="16,0,16,0" HorizontalAlignment="Left"></TextBlock>
  19. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" >
  20. <!--<Button Height="20" Width="20"></Button>-->
  21. <Button Height="22" Width="22" Margin="16,0,6,0" Command="{Binding EnterCreateCommand}" BorderThickness="0" Background="Transparent">
  22. <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
  23. <Ellipse Width="20" Height="20" Stroke="black" StrokeThickness="2"/>
  24. <Path Data="M6 10H14M10 6V14" Stroke="black" StrokeThickness="2" StrokeStartLineCap="Round" StrokeLineJoin="Round"/>
  25. </Grid>
  26. </Button>
  27. </StackPanel>
  28. </Grid>
  29. <Grid Grid.Row="1" Margin="16,0,16,0">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition></ColumnDefinition>
  32. <ColumnDefinition></ColumnDefinition>
  33. </Grid.ColumnDefinitions>
  34. <Button Grid.Column="0" x:Name="WatermarkTemplateListTextContent" Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=WatermarkTemplateListTextContent}">
  35. <StackPanel Orientation="Vertical" >
  36. <TextBlock Text="文本" FontSize="18"></TextBlock>
  37. </StackPanel>
  38. </Button>
  39. <Button Grid.Column="1" x:Name="WatermarkTemplateListFileContent" Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=WatermarkTemplateListFileContent}">
  40. <StackPanel Orientation="Vertical" >
  41. <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
  42. </StackPanel>
  43. </Button>
  44. </Grid>
  45. <Grid Grid.Row="2">
  46. <ContentControl prism:RegionManager.RegionName="{Binding WatermarkTemplateListRegionName}" Visibility="{Binding WatermarkTemplateListVisible}"></ContentControl>
  47. </Grid>
  48. </Grid>
  49. </UserControl>