BackgroundTemplateListBaseContent.xaml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <UserControl x:Class="PDF_Master.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_Master.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="22" Width="22" Margin="16,0,6,0" Command="{Binding EnterCreateCommand}" BorderThickness="0" Background="Transparent">
  22. <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
  23. <Ellipse Width="20" Height="20" Stroke="black" StrokeThickness="2"/>
  24. <Path Data="M6 10H14M10 6V14" Stroke="black" StrokeThickness="2" StrokeStartLineCap="Round" StrokeLineJoin="Round"/>
  25. </Grid>
  26. </Button>
  27. </StackPanel>
  28. </Grid>
  29. <Grid Grid.Row="1" Margin="16,0,16,0">
  30. <Grid.ColumnDefinitions>
  31. <ColumnDefinition></ColumnDefinition>
  32. <ColumnDefinition></ColumnDefinition>
  33. </Grid.ColumnDefinitions>
  34. <Button x:Name="BackgroundTemplateListColorContent" Grid.Column="0" Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=BackgroundTemplateListColorContent}">
  35. <StackPanel Orientation="Vertical" >
  36. <TextBlock Text="颜色" FontSize="18"></TextBlock>
  37. </StackPanel>
  38. </Button>
  39. <Button Grid.Column="1" x:Name="BackgroundTemplateListFileContent" Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=BackgroundTemplateListFileContent}">
  40. <StackPanel Orientation="Vertical" >
  41. <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
  42. </StackPanel>
  43. </Button>
  44. </Grid>
  45. <Grid Grid.Row="2">
  46. <ContentControl prism:RegionManager.RegionName="{Binding BackgroundTemplateListRegionName}" Visibility="{Binding BackgroundTemplateListVisible}"></ContentControl>
  47. </Grid>
  48. </Grid>
  49. </UserControl>