123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <UserControl x:Class="PDF_Office.Views.EditTools.Background.BackgroundTemplateListBaseContent"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- 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}"
- mc:Ignorable="d"
- d:DesignHeight="720"
- d:DesignWidth="260" >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"></RowDefinition>
- <RowDefinition Height="48"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <TextBlock Width="32" Height="24" Text="背景" FontSize="16" Margin="16,0,16,0" HorizontalAlignment="Left"></TextBlock>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Height="20" Width="20"></Button>
- <Button Height="20" Width="20" Margin="16,0,16,0" Command="{Binding EnterCreateCommand}"></Button>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1" Margin="16,0,16,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Button x:Name="BackgroundTemplateListColorContent" Grid.Column="0" Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=BackgroundTemplateListColorContent}">
- <StackPanel Orientation="Vertical" >
- <TextBlock Text="颜色" FontSize="18"></TextBlock>
- </StackPanel>
- </Button>
- <Button Grid.Column="1" x:Name="BackgroundTemplateListFileContent" Command="{Binding ChangeTemplateListModCommand}" CommandParameter="{Binding ElementName=BackgroundTemplateListFileContent}">
- <StackPanel Orientation="Vertical" >
- <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
- </StackPanel>
- </Button>
- </Grid>
- <Grid Grid.Row="2">
- <ContentControl prism:RegionManager.RegionName="{Binding BackgroundTemplateListRegionName}" Visibility="{Binding BackgroundTemplateListVisible}"></ContentControl>
- </Grid>
- </Grid>
- </UserControl>
|