AddCustomCertificationControl.xaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <UserControl x:Class="Compdfkit_Tools.PDFControl.AddCustomCertificationControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Compdfkit_Tools.PDFControl"
  7. xmlns:cpdfcommon="clr-namespace:Compdfkit_Tools.Common"
  8. mc:Ignorable="d"
  9. Height="350" Width="403">
  10. <UserControl.Resources>
  11. <cpdfcommon:TextLengthToVisibilityConverter x:Key="TextLengthToVisibilityConverter"></cpdfcommon:TextLengthToVisibilityConverter>
  12. <cpdfcommon:BoolToCollapsedConverter x:Key="BoolToCollapsedConverter"></cpdfcommon:BoolToCollapsedConverter>
  13. </UserControl.Resources>
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="280"></RowDefinition>
  17. <RowDefinition></RowDefinition>
  18. <RowDefinition></RowDefinition>
  19. </Grid.RowDefinitions>
  20. <Grid Background="#ffffff" Margin="20,0,0,0" Panel.ZIndex="1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top">
  21. <TextBlock Text="Signature Information" FontWeight="Bold" FontSize="16"></TextBlock>
  22. </Grid>
  23. <Border Margin="12" BorderBrush="#33000000" BorderThickness="1">
  24. <Grid Margin="10">
  25. <Grid.RowDefinitions>
  26. <RowDefinition></RowDefinition>
  27. <RowDefinition></RowDefinition>
  28. <RowDefinition></RowDefinition>
  29. <RowDefinition></RowDefinition>
  30. <RowDefinition></RowDefinition>
  31. <RowDefinition></RowDefinition>
  32. </Grid.RowDefinitions>
  33. <Grid.ColumnDefinitions>
  34. <ColumnDefinition Width="*"></ColumnDefinition>
  35. <ColumnDefinition Width="2*"></ColumnDefinition>
  36. </Grid.ColumnDefinitions>
  37. <StackPanel Orientation="Horizontal">
  38. <TextBlock Text="Grantor Name" VerticalAlignment="Center"></TextBlock>
  39. <TextBlock Text="*" Foreground="Red" VerticalAlignment="Center"></TextBlock>
  40. </StackPanel>
  41. <Grid Grid.Column="1">
  42. <TextBox Height="28" x:Name="GrantorNameTxt" VerticalContentAlignment="Center" VerticalAlignment="Center" Text="{Binding GrantorName}"/>
  43. <TextBlock Text="Please Enter Grantor Name" VerticalAlignment="Center" Margin="10,0,0,0" Visibility="{Binding ElementName=GrantorNameTxt, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  44. </Grid>
  45. <TextBlock Grid.Row="1" Text="Organizational Unit" VerticalAlignment="Center"></TextBlock>
  46. <Grid Grid.Column="1" Grid.Row="1">
  47. <TextBox Height="28" x:Name="OrganizationalUnitTxt" VerticalContentAlignment="Center" Text="{Binding OrganizationalUnit}" VerticalAlignment="Center"/>
  48. <TextBlock Text="Please Enter Organizational Unit" VerticalAlignment="Center" Margin="10,0,0,0" Visibility="{Binding ElementName=OrganizationalUnitTxt, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  49. </Grid>
  50. <TextBlock Grid.Row="2" Text="Organization" VerticalAlignment="Center"></TextBlock>
  51. <Grid Grid.Column="1" Grid.Row="2">
  52. <TextBox Height="28" x:Name="OrganizationTxt" VerticalContentAlignment="Center" Text="{Binding Organization}" VerticalAlignment="Center"/>
  53. <TextBlock Text="Please Enter Organization" VerticalAlignment="Center" Margin="10,0,0,0" Visibility="{Binding ElementName=OrganizationTxt, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  54. </Grid>
  55. <StackPanel Grid.Row="3" Orientation="Horizontal">
  56. <TextBlock Text="Email" VerticalAlignment="Center"></TextBlock>
  57. <TextBlock Text="*" Foreground="Red" VerticalAlignment="Center"></TextBlock>
  58. </StackPanel>
  59. <Grid Grid.Column="1" Grid.Row="3">
  60. <TextBox Height="28" x:Name="EmailTxt" VerticalContentAlignment="Center" Text="{Binding Email}" VerticalAlignment="Center"/>
  61. <TextBlock Text="Please Enter Email" VerticalAlignment="Center" Margin="10,0,0,0" Visibility="{Binding ElementName=EmailTxt, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  62. </Grid>
  63. <TextBlock Grid.Row="4" Text="Country/Area" VerticalAlignment="Center"></TextBlock>
  64. <Grid Grid.Column="1" Grid.Row="4">
  65. <ComboBox Margin="0,5,0,5" Name="AreaCmb" SelectedIndex="0" SelectionChanged="AreaCmb_SelectionChanged"></ComboBox>
  66. </Grid>
  67. <TextBlock Grid.Row="5" Text="Purpose" VerticalAlignment="Center"></TextBlock>
  68. <Grid Grid.Column="1" Grid.Row="5">
  69. <ComboBox Margin="0,5,0,5" Name="PurposeCmb" SelectedIndex="0" SelectionChanged="PurposeCmb_SelectionChanged"></ComboBox>
  70. </Grid>
  71. </Grid>
  72. </Border>
  73. <TextBlock Grid.Row="1" Name="ErrorTipsText" Foreground="Red" Margin="15,0,24,14"></TextBlock>
  74. <Grid Grid.Row="2">
  75. <StackPanel Margin="0,-10,24,12" VerticalAlignment="Bottom" Orientation="Horizontal" HorizontalAlignment="Right">
  76. <Button x:Name="CancelBtn" Height="32" Width="112" Margin="0,0,8,0" Content="Cancel" Click="CancelBtn_Click"></Button>
  77. <Button x:Name="SaveBtn" Height="32" Width="112" Content="Save" Click="SaveBtn_Click"></Button>
  78. </StackPanel>
  79. </Grid>
  80. </Grid>
  81. </UserControl>