12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <Window x:Class="ComPDFKitDemo.PageEditor.InsertDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:ComPDFKitDemo.PageEditor"
- mc:Ignorable="d"
- Title="InsertDialog" Height="300" Width="400"
- WindowStyle="None"
- ShowInTaskbar="False"
- BorderBrush="AliceBlue"
- BorderThickness="1"
- WindowStartupLocation="CenterScreen"
- ResizeMode="NoResize"
- >
- <Window.Resources>
- <Style TargetType="Button" x:Key="CloseButton">
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="Red"/>
- <Setter Property="Foreground" Value="White"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </Window.Resources>
- <Border CornerRadius="8" Background="White" BorderThickness="0">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="15*"/>
- <RowDefinition Height="auto"/>
- </Grid.RowDefinitions>
- <StackPanel >
- <Button HorizontalAlignment="Center" Content="Insert Page" Background="Transparent" BorderThickness="0" FontSize="18"/>
- </StackPanel>
- <Button x:Name="CloseBtn" Click="CloseBtn_Click" HorizontalAlignment="Right" FontFamily="Segoe MDL2 Assets" Content="" FontSize="18" Background="Transparent" Style="{StaticResource CloseButton}"/>
- <Grid Grid.Row="1">
- <StackPanel Margin="20,0,0,0">
- <TextBlock Text="Insert" FontWeight="Black" />
- <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
- <TextBox Width="300" Margin="0,0,10,0"/>
- <Button Name="chooseFile" Width="32" FontFamily="Segoe MDL2 Assets" Content="" Background="Beige" HorizontalAlignment="Right"/>
- </StackPanel>
- <StackPanel Margin="0,20,0,0">
- <TextBlock Text="Placed in the" Margin="0,0,0,5" FontWeight="Black"/>
- <RadioButton Content="first page" FontSize="10" Margin="0,0,0,3"/>
- <RadioButton Content="last page" FontSize="10" Margin="0,0,0,3"/>
- <RadioButton x:Name="page" Content="page range" FontSize="10" IsChecked="True" Margin="0,0,0,3"/>
- <StackPanel Orientation="Horizontal" Margin="20,0,0,0">
- <TextBox Height="30" Width="50" BorderThickness="1 1 2 2" IsEnabled="{Binding ElementName=page,Path=IsChecked}"/>
- <TextBlock Margin="5,0,0,0" Text="/ 4" VerticalAlignment="Center" />
- </StackPanel>
- </StackPanel>
- <StackPanel Margin="0,20,0,0">
- <TextBlock Text="Location:" FontWeight="Black"/>
- <RadioButton Content="Before" FontSize="10" Margin="0,0,0,3" IsChecked="True"/>
- <RadioButton Content="After" FontSize="10" Margin="0,0,0,3"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
- <Button Content="OK" Background="Beige" >
-
- </Button>
- <Button Content="Cancel" Background="Beige" Margin="10,0,10,0"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Grid>
- </Border>
- </Window>
|