12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageBackground.HomePageBackgroundCreateBaseContent"
- 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="50"></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>
- <ScrollViewer Grid.Row="1">
- <Grid Grid.Row="1">
- <Grid.RowDefinitions>
- <RowDefinition Height="32"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Margin="16,0,16,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Button Name="HomePageBackgroundCreateColorContent" Grid.Column="0" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=HomePageBackgroundCreateColorContent}">
- <StackPanel Orientation="Vertical" >
- <TextBlock Text="颜色" FontSize="18"></TextBlock>
- </StackPanel>
- </Button>
- <Button Name="HomePageBackgroundCreateFileContent" Grid.Column="1" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=HomePageBackgroundCreateFileContent}">
- <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>
- </ScrollViewer>
- </Grid>
- </UserControl>
|