BackgroundTemplateListBaseContent.xaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <UserControl x:Class="PDF_Office.Views.EditTools.Background.BackgroundTemplateListBaseContent"
  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:BackgroundTemplateListBaseContentViewModel}"
  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">
  18. <TextBlock Width="32" Height="24" Text="背景" FontSize="16" Margin="16,0,16,0" HorizontalAlignment="Left"></TextBlock>
  19. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  20. <Button Height="20" Width="20"></Button>
  21. <Button Height="20" Width="20" Margin="16,0,16,0" Command="{Binding EnterCreateCommand}"></Button>
  22. </StackPanel>
  23. </Grid>
  24. <Grid Grid.Row="1" Margin="16,0,16,0">
  25. <Grid.ColumnDefinitions>
  26. <ColumnDefinition></ColumnDefinition>
  27. <ColumnDefinition></ColumnDefinition>
  28. </Grid.ColumnDefinitions>
  29. <Button x:Name="BackgroundTemplateListColorContent" Grid.Column="0" Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=BackgroundTemplateListColorContent}">
  30. <StackPanel Orientation="Vertical" >
  31. <TextBlock Text="颜色" FontSize="18"></TextBlock>
  32. </StackPanel>
  33. </Button>
  34. <Button Grid.Column="1" x:Name="BackgroundTemplateListFileContent" Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=BackgroundTemplateListFileContent}">
  35. <StackPanel Orientation="Vertical" >
  36. <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
  37. </StackPanel>
  38. </Button>
  39. </Grid>
  40. <Grid Grid.Row="2">
  41. <ContentControl prism:RegionManager.RegionName="{Binding BackgroundTemplateListRegionName}" Visibility="{Binding BackgroundTemplateListVisible}"></ContentControl>
  42. </Grid>
  43. </Grid>
  44. </UserControl>