1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <UserControl x:Class="PDF_Office.Views.EditTools.Background.BackgroundCreateBaseContent"
- 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:BackgroundCreateBaseContentViewModel}"
- 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" Visibility="{Binding CreateBaseVisible, Mode=TwoWay}">
- <Button Height="24" Width="90" HorizontalAlignment="Left" Margin="16,0,0,0" Command="{Binding EnterTemplateListCommand}">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="<" Margin="0,0,9,0" FontSize="16"></TextBlock>
- <TextBlock Text="创建背景" FontSize="16"></TextBlock>
- </StackPanel>
- </Button>
- <Button Height="20" Width="64" Margin="0,0,16,0" HorizontalAlignment="Right" Command="{Binding SaveToTemplateListCommand}">
- <StackPanel>
- <TextBlock Text="保存至模板" Foreground="#18A0FB"></TextBlock>
- <Rectangle Height="1" Fill="#18A0FB"></Rectangle>
- </StackPanel>
- </Button>
- </Grid>
- <Grid Grid.Row="0" Visibility="{Binding EditBaseVisible, Mode=TwoWay}">
- <Button Height="24" Width="90" HorizontalAlignment="Left" Margin="16,0,0,0" Command="{Binding EnterTemplateListCommand}">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="<" Margin="0,0,9,0" FontSize="16"></TextBlock>
- <TextBlock Text="编辑模板" FontSize="16"></TextBlock>
- </StackPanel>
- </Button>
- <Button Height="20" Width="64" Margin="0,0,16,0" HorizontalAlignment="Right" Command="{Binding SaveToCurrentTemplateListCommand}">
- <StackPanel>
- <TextBlock Text="保存" Foreground="#18A0FB"></TextBlock>
- <Rectangle Height="1" Fill="#18A0FB"></Rectangle>
- </StackPanel>
- </Button>
- </Grid>
- <Grid Grid.Row="1" Margin="16,0,16,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Button Name="BackgroundCreateColorContent" Grid.Column="0" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=BackgroundCreateColorContent}">
- <StackPanel Orientation="Vertical" >
- <TextBlock Text="颜色" FontSize="18"></TextBlock>
- </StackPanel>
- </Button>
- <Button Name="BackgroundCreateFileContent" Grid.Column="1" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=BackgroundCreateFileContent}">
- <StackPanel Orientation="Vertical" >
- <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
- </StackPanel>
- </Button>
- </Grid>
- <Grid Grid.Row="2">
- <ContentControl prism:RegionManager.RegionName="{Binding BackgroundCreateRegionName}" Visibility="{Binding BackgroundCreateVisible}"></ContentControl>
- </Grid>
- </Grid>
- </UserControl>
|