HomePageBackgroundCreateBaseContent.xaml 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <UserControl x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageBackground.HomePageBackgroundCreateBaseContent"
  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:background="clr-namespace:PDF_Master.ViewModels.EditTools.Background" d:DataContext="{d:DesignInstance Type=background:BackgroundCreateBaseContentViewModel}"
  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="HomePageBackgroundCreateColorContent" Grid.Column="0" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=HomePageBackgroundCreateColorContent}">
  56. <StackPanel Orientation="Vertical" >
  57. <TextBlock Text="颜色" FontSize="18"></TextBlock>
  58. </StackPanel>
  59. </Button>
  60. <Button Name="HomePageBackgroundCreateFileContent" Grid.Column="1" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=HomePageBackgroundCreateFileContent}">
  61. <StackPanel Orientation="Vertical" >
  62. <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
  63. </StackPanel>
  64. </Button>
  65. </Grid>
  66. <Grid Grid.Row="2">
  67. <ContentControl prism:RegionManager.RegionName="{Binding BackgroundCreateRegionName}" Visibility="{Binding BackgroundCreateVisible}"></ContentControl>
  68. </Grid>
  69. </Grid>
  70. </ScrollViewer>
  71. </Grid>
  72. </UserControl>