BackgroundContent.xaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <UserControl x:Class="PDF_Office.Views.EditTools.Background.BackgroundContent"
  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. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:background="clr-namespace:PDF_Office.ViewModels.EditTools.Background"
  8. d:DataContext="{d:DesignInstance Type=background:BackgroundContentViewModel}"
  9. mc:Ignorable="d"
  10. prism:ViewModelLocator.AutoWireViewModel="True"
  11. d:DesignHeight="760"
  12. d:DesignWidth="1280">
  13. <UserControl.Resources>
  14. <ResourceDictionary>
  15. <ResourceDictionary.MergedDictionaries>
  16. <ResourceDictionary Source="../../../Styles/CustomBtnStyle.xaml"/>
  17. </ResourceDictionary.MergedDictionaries>
  18. </ResourceDictionary>
  19. </UserControl.Resources>
  20. <Grid>
  21. <Grid.RowDefinitions>
  22. <RowDefinition Height="40"></RowDefinition>
  23. <RowDefinition></RowDefinition>
  24. </Grid.RowDefinitions>
  25. <Grid Grid.Row="0" Background="AntiqueWhite">
  26. <Border x:Name="ToolsBorder" BorderBrush="#1A000000" BorderThickness="0,1,0,1" Height="40">
  27. <WrapPanel HorizontalAlignment="Center" Height="40">
  28. <Button Style="{StaticResource InsideBarBtnStyle }">
  29. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  30. <StackPanel Margin="0,0,8,0">
  31. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  32. </StackPanel >
  33. <TextBlock Text="添加背景" VerticalAlignment="Center"></TextBlock>
  34. </StackPanel>
  35. </Button>
  36. <Button Style="{StaticResource InsideBarBtnStyle }" >
  37. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  38. <StackPanel Margin="0,0,8,0">
  39. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  40. </StackPanel >
  41. <TextBlock Text="移除" VerticalAlignment="Center"></TextBlock>
  42. </StackPanel>
  43. </Button>
  44. <Label Height="10" Width="1" Background="LightGray"></Label>
  45. <Button Style="{StaticResource InsideBarBtnStyle }" >
  46. <StackPanel Orientation="Horizontal" Margin="12 0 12 0">
  47. <StackPanel Margin="0,0,8,0">
  48. <Border Height="30" Width="30" Background="LightSeaGreen" ></Border>
  49. </StackPanel >
  50. <TextBlock Text="批量" VerticalAlignment="Center"></TextBlock>
  51. </StackPanel>
  52. </Button>
  53. </WrapPanel>
  54. </Border>
  55. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  56. <Button Content="应用" Height="24" Width="44" ></Button>
  57. <Button Content="关闭" Height="24" Width="44" Margin="16,0,16,0" Command="{Binding CloseEditToolCommand}"></Button>
  58. </StackPanel>
  59. </Grid>
  60. <Grid Grid.Row="1" >
  61. <Grid.ColumnDefinitions>
  62. <ColumnDefinition></ColumnDefinition>
  63. <ColumnDefinition Width="260"></ColumnDefinition>
  64. </Grid.ColumnDefinitions>
  65. <Grid Grid.Column="0" Background="BurlyWood" >
  66. <Border Height="64" Width="293" HorizontalAlignment="Center" VerticalAlignment="Bottom" Panel.ZIndex="1" Margin="9" Background="#323232" CornerRadius="4">
  67. <Grid>
  68. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  69. <StackPanel Orientation="Horizontal">
  70. <TextBlock Text="-" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
  71. <TextBlock Text="+" FontSize="20" Foreground="White" Margin="0,0,39,0"></TextBlock>
  72. </StackPanel>
  73. <StackPanel Orientation="Horizontal">
  74. <TextBlock Text="1" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
  75. <TextBlock Text="/" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
  76. <TextBlock Text="20" FontSize="20" Foreground="White" Margin="0,0,24,0"></TextBlock>
  77. </StackPanel>
  78. <StackPanel Orientation="Horizontal">
  79. <TextBlock Text="↑" FontSize="20" Foreground="White" Margin="20,0,20,0"></TextBlock>
  80. <TextBlock Text="↓" FontSize="20" Foreground="White"></TextBlock>
  81. </StackPanel>
  82. </StackPanel>
  83. </Grid>
  84. </Border>
  85. </Grid>
  86. <Grid Grid.Column="1" Background="Wheat">
  87. <ContentControl prism:RegionManager.RegionName="{Binding BackgroundSettingsRegionName}" Visibility="{Binding BackgroundSettingsVisible}"></ContentControl>
  88. </Grid>
  89. </Grid>
  90. </Grid>
  91. </UserControl>