AddCustomCertificationControl.xaml 7.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <UserControl x:Class="ComPDFKit.Controls.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.Controls.PDFControl"
  7. xmlns:cpdfcommon="clr-namespace:ComPDFKit.Controls.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. <cpdfcommon:SigResourceConverter x:Key="SigResourceConverter"></cpdfcommon:SigResourceConverter>
  14. </UserControl.Resources>
  15. <Grid>
  16. <Grid.RowDefinitions>
  17. <RowDefinition Height="280"></RowDefinition>
  18. <RowDefinition></RowDefinition>
  19. <RowDefinition></RowDefinition>
  20. </Grid.RowDefinitions>
  21. <Grid Background="#ffffff" Margin="20,0,0,0" Panel.ZIndex="1" Height="20" HorizontalAlignment="Left" VerticalAlignment="Top">
  22. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Title_CreateID}" FontWeight="Bold" FontSize="16"></TextBlock>
  23. </Grid>
  24. <Border Margin="12" BorderBrush="#33000000" BorderThickness="1">
  25. <Grid Margin="10">
  26. <Grid.RowDefinitions>
  27. <RowDefinition></RowDefinition>
  28. <RowDefinition></RowDefinition>
  29. <RowDefinition></RowDefinition>
  30. <RowDefinition></RowDefinition>
  31. <RowDefinition></RowDefinition>
  32. <RowDefinition></RowDefinition>
  33. </Grid.RowDefinitions>
  34. <Grid.ColumnDefinitions>
  35. <ColumnDefinition Width="*"></ColumnDefinition>
  36. <ColumnDefinition Width="2*"></ColumnDefinition>
  37. </Grid.ColumnDefinitions>
  38. <StackPanel Orientation="Horizontal">
  39. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Tip_Name}" VerticalAlignment="Center"></TextBlock>
  40. <TextBlock Text="*" Foreground="Red" VerticalAlignment="Center"></TextBlock>
  41. </StackPanel>
  42. <Grid Grid.Column="1">
  43. <TextBox Height="28" x:Name="GrantorNameTxt" VerticalContentAlignment="Center" VerticalAlignment="Center" Text="{Binding GrantorName}" MaxLength="50"/>
  44. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Holder_Name}" VerticalAlignment="Center" Margin="10,0,0,0" Visibility="{Binding ElementName=GrantorNameTxt, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  45. </Grid>
  46. <TextBlock Grid.Row="1" Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Tip_Unit}" VerticalAlignment="Center"></TextBlock>
  47. <Grid Grid.Column="1" Grid.Row="1">
  48. <TextBox Height="28" x:Name="OrganizationalUnitTxt" VerticalContentAlignment="Center" Text="{Binding OrganizationalUnit}" VerticalAlignment="Center"/>
  49. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Holder_Unit}" VerticalAlignment="Center" Margin="10,0,0,0" Visibility="{Binding ElementName=OrganizationalUnitTxt, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  50. </Grid>
  51. <TextBlock Grid.Row="2" Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Tip_Organization}" VerticalAlignment="Center"></TextBlock>
  52. <Grid Grid.Column="1" Grid.Row="2">
  53. <TextBox Height="28" x:Name="OrganizationTxt" VerticalContentAlignment="Center" Text="{Binding Organization}" VerticalAlignment="Center"/>
  54. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Holder_Organization}" VerticalAlignment="Center" Margin="10,0,0,0" Visibility="{Binding ElementName=OrganizationTxt, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  55. </Grid>
  56. <StackPanel Grid.Row="3" Orientation="Horizontal">
  57. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Tip_Email}" VerticalAlignment="Center"></TextBlock>
  58. <TextBlock Text="*" Foreground="Red" VerticalAlignment="Center"></TextBlock>
  59. </StackPanel>
  60. <Grid Grid.Column="1" Grid.Row="3">
  61. <TextBox Height="28" x:Name="EmailTxt" VerticalContentAlignment="Center" Text="{Binding Email}" VerticalAlignment="Center"/>
  62. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Holder_Email}" VerticalAlignment="Center" Margin="10,0,0,0" Visibility="{Binding ElementName=EmailTxt, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  63. </Grid>
  64. <TextBlock Grid.Row="4" Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Tip_Country}" VerticalAlignment="Center"></TextBlock>
  65. <Grid Grid.Column="1" Grid.Row="4">
  66. <ComboBox VerticalContentAlignment="Center" Margin="0,5,0,5" Name="AreaCmb" SelectedIndex="0" SelectionChanged="AreaCmb_SelectionChanged"></ComboBox>
  67. </Grid>
  68. <TextBlock Grid.Row="5" Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Tip_Use}" VerticalAlignment="Center"></TextBlock>
  69. <Grid Grid.Column="1" Grid.Row="5">
  70. <ComboBox Margin="0,5,0,5" VerticalContentAlignment="Center" Name="PurposeCmb" SelectedIndex="0" SelectionChanged="PurposeCmb_SelectionChanged"></ComboBox>
  71. </Grid>
  72. </Grid>
  73. </Border>
  74. <TextBlock Grid.Row="1" Name="ErrorTipsText" Foreground="Red" Margin="15,0,24,14"></TextBlock>
  75. <Grid Grid.Row="2">
  76. <StackPanel Margin="0,-10,24,12" VerticalAlignment="Bottom" Orientation="Horizontal" HorizontalAlignment="Right">
  77. <Button x:Name="CancelBtn" Height="32" Width="112" Margin="0,0,8,0" Content="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Button_Cancel}" Click="CancelBtn_Click"></Button>
  78. <Button x:Name="SaveBtn" Height="32" Width="112" Content="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Button_Continue}" Click="SaveBtn_Click"></Button>
  79. </StackPanel>
  80. </Grid>
  81. </Grid>
  82. </UserControl>