123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176 |
- <UserControl x:Class="PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageHeaderFooter.HomePageHeaderFooterCreateContent"
- 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:cus="clr-namespace:PDF_Master.CustomControl"
- xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:CompositeControl="clr-namespace:PDF_Master.CustomControl.CompositeControl"
- mc:Ignorable="d"
- d:DesignHeight="711"
- d:DesignWidth="260" >
- <UserControl.Resources>
- <ResourceDictionary >
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary Source="../../../../../Styles/RadioButtonStyle.xaml"></ResourceDictionary>
- </ResourceDictionary.MergedDictionaries>
- </ResourceDictionary>
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="50"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Visibility="{Binding CreateBaseVisible, Mode=TwoWay}">
- <Button Height="24" Width="124" 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="104"></RowDefinition>
- <RowDefinition Height="120"></RowDefinition>
- <RowDefinition Height="160"></RowDefinition>
- <RowDefinition Height="173"></RowDefinition>
- <RowDefinition></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Width="228">
- <StackPanel>
- <TextBlock Text="外观" FontFamily="Segoe UI" FontStyle="Normal" FontSize="12" Height="20" Width="228" HorizontalAlignment="Left" Foreground="#616469"></TextBlock>
- <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
- <ComboBox Width="228" Height="32" ItemsSource="{Binding FontNameList}" SelectedIndex="{Binding FontNameSelectedIndex}"></ComboBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
- <ComboBox Width="164" Height="32" Margin="0,0,0,0" ItemsSource="{Binding FontSizeList}" SelectedIndex="{Binding FontSizeSelectedIndex}"></ComboBox>
- <CompositeControl:ColorContent x:Name="cusColor" Height="32" Width="56" Margin="8,0,0,0" HorizontalAlignment="Left">
- </CompositeControl:ColorContent>
- </StackPanel>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1" Margin="0,16,0,0" Width="228">
- <StackPanel>
- <TextBlock Text="页边距" FontFamily="Segoe UI" FontStyle="Normal" FontSize="12" Height="20" Width="228" HorizontalAlignment="Left" Foreground="#616469"></TextBlock>
- <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
- <StackPanel Orientation="Vertical" Margin="0,0,0,0">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="上" Width="14" Height="20" VerticalAlignment="Center"/>
- <cus:NumericUpDown Width="90" Height="32" Margin="4,0,0,0" Text="{Binding MarginTopValue,Mode=TwoWay}"></cus:NumericUpDown>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
- <TextBlock Text="左" Width="14" Height="20" VerticalAlignment="Center"/>
- <cus:NumericUpDown Width="90" Height="32" Margin="4,0,0,0" Text="{Binding MarginLeftValue,Mode=TwoWay}"></cus:NumericUpDown>
- </StackPanel>
- </StackPanel>
- <StackPanel Orientation="Vertical" Margin="8,0,0,0">
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="下" Width="14" Height="20" VerticalAlignment="Center"/>
- <cus:NumericUpDown Width="90" Height="32" Margin="4,0,0,0" Text="{Binding MarginDownValue,Mode=TwoWay}"></cus:NumericUpDown>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
- <TextBlock Text="右" Width="14" Height="20" VerticalAlignment="Center"/>
- <cus:NumericUpDown Width="90" Height="32" Margin="4,0,0,0" Text="{Binding MarginRightValue,Mode=TwoWay}"></cus:NumericUpDown>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="2" Margin="0,16,0,0" Width="228">
- <StackPanel>
- <TextBlock Text="Page Number & Date Format" Height="20" Width="228" FontFamily="Segoe UI" FontStyle="Normal" FontSize="12" Foreground="#616469"></TextBlock>
- <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
- <TextBlock Text="日期" FontSize="14" Foreground="#252629" Height="22" Width="33" HorizontalAlignment="Left" FontFamily="Segoe UI"></TextBlock>
- <ComboBox Height="32" Width="185" ItemsSource="{Binding DateTimeFormatList}" SelectedIndex="{Binding DateTimeFormatIndex}" Margin="10,0,0,0"></ComboBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,8,0,0">
- <TextBlock Text="页面" FontSize="14" Foreground="#252629" Height="22" Width="34" HorizontalAlignment="Left" FontFamily="Segoe UI"></TextBlock>
- <ComboBox Height="32" Width="184" ItemsSource="{Binding PageNumberFormatList}" SelectedIndex="{Binding PageNumberFormatIndex}" Margin="10,0,0,0"></ComboBox>
- </StackPanel>
- <StackPanel Margin="0,8,0,0" Orientation="Horizontal">
- <TextBlock Text="起始页" FontSize="14" Foreground="#252629" Height="22" Width="66" HorizontalAlignment="Left" FontFamily="Segoe UI"></TextBlock>
- <ComboBox Height="32" Width="152" ItemsSource="{Binding StarPagetNumberList}" SelectedIndex="{Binding StarPagetNumberIndex}" Margin="10,0,0,0"></ComboBox>
- </StackPanel>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="3" Margin="0,16,0,0" Width="228">
- <StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="布局&内容" FontFamily="Segoe UI" FontStyle="Normal" FontSize="12" Height="20" Width="198" HorizontalAlignment="Left" Foreground="#616469"></TextBlock>
- <Button Width="22" Height="22" Margin="8,0,0,0" Click="Button_Click">
- <TextBlock Text="+" FontSize="19" HorizontalAlignment="Center" VerticalAlignment="Center" Block.TextAlignment="Center" ></TextBlock>
- <Button.ContextMenu>
- <ContextMenu Name="contextMenu">
- <MenuItem Name="ADDPages" Header="插入页码" Click="ADDPages_Click" >
- </MenuItem>
- <MenuItem Name="ADDDate" Header="插入日期" Click="ADDDate_Click">
- </MenuItem>
- </ContextMenu>
- </Button.ContextMenu>
- </Button>
- </StackPanel>
- <Grid Width="228" Height="46" Margin="0,6,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="76"></ColumnDefinition>
- <ColumnDefinition Width="76"></ColumnDefinition>
- <ColumnDefinition Width="76"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="23"></RowDefinition>
- <RowDefinition Height="23"></RowDefinition>
- </Grid.RowDefinitions>
- <RadioButton Grid.Column="0" Grid.Row="0" Tag="0" GroupName="TextLocation" Height="23" Width="76" BorderThickness="1" BorderBrush="Black" Style="{StaticResource LocationRadioBtnStyle}" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" ></RadioButton>
- <RadioButton Grid.Column="1" Grid.Row="0" Tag="1" GroupName="TextLocation" Height="23" Width="76" BorderThickness="1" BorderBrush="Black" Style="{StaticResource LocationRadioBtnStyle}" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" ></RadioButton>
- <RadioButton Grid.Column="2" Grid.Row="0" Tag="2" GroupName="TextLocation" Height="23" Width="76" BorderThickness="1" BorderBrush="Black" Style="{StaticResource LocationRadioBtnStyle}" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" ></RadioButton>
- <RadioButton Grid.Column="0" Grid.Row="1" Tag="3" GroupName="TextLocation" Height="23" Width="76" BorderThickness="1" BorderBrush="Black" Style="{StaticResource LocationRadioBtnStyle}" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}"></RadioButton>
- <RadioButton Grid.Column="1" Grid.Row="1" Tag="4" GroupName="TextLocation" Height="23" Width="76" BorderThickness="1" BorderBrush="Black" Style="{StaticResource LocationRadioBtnStyle}" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}" ></RadioButton>
- <RadioButton Grid.Column="2" Grid.Row="1" Tag="5" GroupName="TextLocation" Height="23" Width="76" BorderThickness="1" BorderBrush="Black" Style="{StaticResource LocationRadioBtnStyle}" Command="{Binding ChangeLocationCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Tag}"></RadioButton>
- </Grid>
- <TextBox Name="TextValueTextBox" Height="72" Margin="0,8,0,0" Text="{Binding TextValue}" Foreground="{Binding SolidColorBrush}" FontSize="14" AcceptsReturn="True">
- <i:Interaction.Triggers>
- <i:EventTrigger EventName="TextChanged">
- <i:InvokeCommandAction Command="{Binding TextValueChangedCommand}" CommandParameter="{Binding ElementName=TextValueTextBox}" />
- </i:EventTrigger>
- </i:Interaction.Triggers>
- </TextBox>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="4" Margin="0,16,0,0" Width="228">
- <StackPanel>
- <TextBlock Text="页面范围" FontSize="12" Foreground="#666666" Height="20" Width="48" HorizontalAlignment="Left"></TextBlock>
- <cus:WritableComboBox Height="32" Margin="0,8,0,0" Text="{Binding PageRangeText,Mode=TwoWay}" SelectedIndex="{Binding PageRangeSelectIndex,Mode=TwoWay}" MaxPageRange="9999"></cus:WritableComboBox>
- </StackPanel>
- </Grid>
- </Grid>
- </ScrollViewer>
- </Grid>
- </UserControl>
|