BackgroundContent.xaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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="#FFFFFF">
  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 }" Command="{Binding DeleteBackgroundCommand}">
  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" Command="{Binding ConfirmEditToolCommand}"></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="#E7E9EC" >
  66. <ContentControl prism:RegionManager.RegionName="{Binding BackgroundDocumentRegionName}" Visibility="{Binding BackgroundDocumentVisible}"></ContentControl>
  67. </Grid>
  68. <Grid Grid.Column="1" Background="#F3F3F3">
  69. <ContentControl prism:RegionManager.RegionName="{Binding BackgroundSettingsRegionName}" Visibility="{Binding BackgroundSettingsVisible}"></ContentControl>
  70. </Grid>
  71. </Grid>
  72. </Grid>
  73. </UserControl>