1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <UserControl x:Class="PDF_Master.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_Master.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="22" Width="22" Margin="16,0,6,0" Command="{Binding EnterCreateCommand}" BorderThickness="0" Background="Transparent">
- <Grid VerticalAlignment="Center" HorizontalAlignment="Center">
- <Ellipse Width="20" Height="20" Stroke="black" StrokeThickness="2"/>
- <Path Data="M6 10H14M10 6V14" Stroke="black" StrokeThickness="2" StrokeStartLineCap="Round" StrokeLineJoin="Round"/>
- </Grid>
- </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>
|