InsertDialog.xaml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <Window x:Class="ComPDFKitDemo.PageEditor.InsertDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:ComPDFKitDemo.PageEditor"
  7. mc:Ignorable="d"
  8. Title="InsertDialog" Height="300" Width="400"
  9. WindowStyle="None"
  10. ShowInTaskbar="False"
  11. BorderBrush="AliceBlue"
  12. BorderThickness="1"
  13. WindowStartupLocation="CenterScreen"
  14. ResizeMode="NoResize"
  15. >
  16. <Window.Resources>
  17. <Style TargetType="Button" x:Key="CloseButton">
  18. <Setter Property="Background" Value="Transparent"/>
  19. <Setter Property="BorderThickness" Value="0"/>
  20. <Style.Triggers>
  21. <Trigger Property="IsMouseOver" Value="True">
  22. <Setter Property="Background" Value="Red"/>
  23. <Setter Property="Foreground" Value="White"/>
  24. </Trigger>
  25. </Style.Triggers>
  26. </Style>
  27. </Window.Resources>
  28. <Border CornerRadius="8" Background="White" BorderThickness="0">
  29. <Grid>
  30. <Grid.RowDefinitions>
  31. <RowDefinition Height="auto"/>
  32. <RowDefinition Height="15*"/>
  33. <RowDefinition Height="auto"/>
  34. </Grid.RowDefinitions>
  35. <StackPanel >
  36. <Button HorizontalAlignment="Center" Content="Insert Page" Background="Transparent" BorderThickness="0" FontSize="18"/>
  37. </StackPanel>
  38. <Button x:Name="CloseBtn" Click="CloseBtn_Click" HorizontalAlignment="Right" FontFamily="Segoe MDL2 Assets" Content="&#xE10A;" FontSize="18" Background="Transparent" Style="{StaticResource CloseButton}"/>
  39. <Grid Grid.Row="1">
  40. <StackPanel Margin="20,0,0,0">
  41. <TextBlock Text="Insert" FontWeight="Black" />
  42. <StackPanel Orientation="Horizontal" Margin="0,5,0,0">
  43. <TextBox Width="300" Margin="0,0,10,0"/>
  44. <Button Name="chooseFile" Width="32" FontFamily="Segoe MDL2 Assets" Content="&#xE10C;" Background="Beige" HorizontalAlignment="Right"/>
  45. </StackPanel>
  46. <StackPanel Margin="0,20,0,0">
  47. <TextBlock Text="Placed in the" Margin="0,0,0,5" FontWeight="Black"/>
  48. <RadioButton Content="first page" FontSize="10" Margin="0,0,0,3"/>
  49. <RadioButton Content="last page" FontSize="10" Margin="0,0,0,3"/>
  50. <RadioButton x:Name="page" Content="page range" FontSize="10" IsChecked="True" Margin="0,0,0,3"/>
  51. <StackPanel Orientation="Horizontal" Margin="20,0,0,0">
  52. <TextBox Height="30" Width="50" BorderThickness="1 1 2 2" IsEnabled="{Binding ElementName=page,Path=IsChecked}"/>
  53. <TextBlock Margin="5,0,0,0" Text="/ 4" VerticalAlignment="Center" />
  54. </StackPanel>
  55. </StackPanel>
  56. <StackPanel Margin="0,20,0,0">
  57. <TextBlock Text="Location:" FontWeight="Black"/>
  58. <RadioButton Content="Before" FontSize="10" Margin="0,0,0,3" IsChecked="True"/>
  59. <RadioButton Content="After" FontSize="10" Margin="0,0,0,3"/>
  60. </StackPanel>
  61. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
  62. <Button Content="OK" Background="Beige" >
  63. </Button>
  64. <Button Content="Cancel" Background="Beige" Margin="10,0,10,0"/>
  65. </StackPanel>
  66. </StackPanel>
  67. </Grid>
  68. </Grid>
  69. </Border>
  70. </Window>