BackgroundCreateBaseContent.xaml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <UserControl x:Class="PDF_Office.Views.EditTools.Background.BackgroundCreateBaseContent"
  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_Office.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="40"></RowDefinition>
  14. <RowDefinition Height="48"></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">
  46. <Grid.ColumnDefinitions>
  47. <ColumnDefinition></ColumnDefinition>
  48. <ColumnDefinition></ColumnDefinition>
  49. </Grid.ColumnDefinitions>
  50. <Button Name="BackgroundCreateColorContent" Grid.Column="0" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=BackgroundCreateColorContent}">
  51. <StackPanel Orientation="Vertical" >
  52. <TextBlock Text="颜色" FontSize="18"></TextBlock>
  53. </StackPanel>
  54. </Button>
  55. <Button Name="BackgroundCreateFileContent" Grid.Column="1" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=BackgroundCreateFileContent}">
  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 BackgroundCreateRegionName}" Visibility="{Binding BackgroundCreateVisible}"></ContentControl>
  63. </Grid>
  64. </Grid>
  65. </UserControl>