AddExistedCertificationControl.xaml 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <UserControl x:Class="Compdfkit_Tools.PDFControl.AddExistedCertificationControl"
  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:common="clr-namespace:Compdfkit_Tools.Common"
  8. mc:Ignorable="d"
  9. Height="277" Width="470">
  10. <UserControl.Resources>
  11. <common:TextLengthToVisibilityConverter x:Key="TextLengthToVisibilityConverter"></common:TextLengthToVisibilityConverter>
  12. <common:SigResourceConverter x:Key="SigResourceConverter"></common:SigResourceConverter>
  13. </UserControl.Resources>
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="auto"></RowDefinition>
  17. <RowDefinition Height="auto"></RowDefinition>
  18. <RowDefinition Height="auto"></RowDefinition>
  19. <RowDefinition></RowDefinition>
  20. </Grid.RowDefinitions>
  21. <TextBlock TextWrapping="Wrap" FontSize="14" Foreground="#000000" Margin="10,20,10,20" Height="40"
  22. Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Tip_AddID}">
  23. </TextBlock>
  24. <StackPanel Grid.Row="1" Orientation="Horizontal" Margin="10,0,10,8">
  25. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Tip_Cert}" Width="92" Foreground="#43474D" FontSize="14" VerticalAlignment="Center" Margin="10,0,10,0" HorizontalAlignment="Left" FontFamily="Microsoft YaHei"></TextBlock>
  26. <Grid IsEnabled="{Binding InputEnable}">
  27. <TextBox Width="238" Height="28" x:Name="FileNameTxt" VerticalContentAlignment="Center" VerticalAlignment="Center" IsReadOnly="True" TextChanged="FileNameTxt_OnTextChanged"/>
  28. <TextBlock Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Holder_Path}" Margin="8" VerticalAlignment="Center" Visibility="{Binding ElementName=FileNameTxt, Path=Text, Converter={StaticResource TextLengthToVisibilityConverter}}" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  29. </Grid>
  30. <Button x:Name="SelectFileBtn" Content="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Button_Upload}" Padding="5,0,5,0" Height="28" FontSize="14" FontFamily="Microsoft YaHei" Margin="8,0,0,0" Click="SelectFileBtn_Click"></Button>
  31. </StackPanel>
  32. <StackPanel Grid.Row="2" Orientation="Horizontal" Margin="10,0,0,8">
  33. <TextBlock Foreground="#43474D" Width="88" FontSize="14" FontFamily="Microsoft YaHei" Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Tip_Password}" VerticalAlignment="Top" Margin="10,5,10,0"></TextBlock>
  34. <StackPanel Margin="0,0,0,0">
  35. <Grid>
  36. <PasswordBox Name="PasswordBoxTxt" Padding="5,0,0,0" Width="238" Height="28" VerticalContentAlignment="Center" VerticalAlignment="Center" PasswordChanged="PasswordBoxTxt_OnPasswordChanged"></PasswordBox>
  37. <TextBlock x:Name="PasswordTextBlock" Text="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Holder_Password}" Margin="8" VerticalAlignment="Center" IsHitTestVisible="False" Foreground="#BBB"></TextBlock>
  38. </Grid>
  39. <TextBlock Name="ErrorTipsText" Foreground="Red" Margin="0,4,0,0"></TextBlock>
  40. </StackPanel>
  41. </StackPanel>
  42. <Grid Grid.Row="3">
  43. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="24">
  44. <Button x:Name="CancelBtn" Content="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Button_Cancel}" Margin="0,0,10,0" Width="112" Height="32" BorderThickness="1" Click="CancelBtn_Click"></Button>
  45. <Button x:Name="DoneBtn" Content="{Binding Converter={StaticResource SigResourceConverter},ConverterParameter=Button_Continue}" Width="112" Height="32" BorderThickness="1" IsEnabled="{Binding CanContinue}" Click="DoneBtn_Click"></Button>
  46. </StackPanel>
  47. </Grid>
  48. </Grid>
  49. </UserControl>