12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <UserControl x:Class="PDF_Master.Views.EditTools.Watermark.WatermarkCreateBaseContent"
- 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:watermark="clr-namespace:PDF_Master.ViewModels.EditTools.Watermark" d:DataContext="{d:DesignInstance Type=watermark:WatermarkCreateBaseContentViewModel}"
- mc:Ignorable="d"
- d:DesignHeight="720"
- d:DesignWidth="260" >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"></RowDefinition>
- <RowDefinition Height="Auto"></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" Visibility="{Binding SelectContentVisibility}" Height="48">
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Button Name="WatermarkCreateTextContent" Grid.Column="0" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=WatermarkCreateTextContent}">
- <StackPanel Orientation="Vertical">
- <TextBlock Text="文本" FontSize="18"></TextBlock>
- </StackPanel>
- </Button>
- <Button Grid.Column="1" Name="WatermarkCreateFileContent" Command="{Binding ChangeCreateModCommand}" CommandParameter="{Binding ElementName=WatermarkCreateFileContent}">
- <StackPanel Orientation="Vertical" >
- <TextBlock Text="文件" FontSize="18" VerticalAlignment="Center"></TextBlock>
- </StackPanel>
- </Button>
- </Grid>
- <Grid Grid.Row="2">
- <ContentControl prism:RegionManager.RegionName="{Binding WatermarkCreateRegionName}" Visibility="{Binding WatermarkCreateVisible}"></ContentControl>
- </Grid>
- </Grid>
- </UserControl>
|