SetPasswordDialog.xaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <UserControl x:Class="PDF_Master.Views.Dialog.ToolsDialogs.SaftyDialogs.SetPasswordDialog"
  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:help="clr-namespace:PDF_Master.Helper"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" xmlns:cus="clr-namespace:PDF_Master.CustomControl" xmlns:saftydialogs="clr-namespace:PDF_Master.ViewModels.Dialog.ToolsDialogs.SaftyDialogs" d:DataContext="{d:DesignInstance Type=saftydialogs:SetPasswordDialogViewModel}"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. d:DesignHeight="314"
  11. d:DesignWidth="432"
  12. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  13. mc:Ignorable="d">
  14. <UserControl.Resources>
  15. <Style TargetType="CheckBox" x:Key="EyeCheckbox">
  16. <Setter Property="Cursor" Value="Hand"></Setter>
  17. <Setter Property="Template">
  18. <Setter.Value>
  19. <ControlTemplate TargetType="{x:Type CheckBox}">
  20. <Grid>
  21. <Border Background="Transparent"
  22. BorderBrush="White"
  23. BorderThickness="1"
  24. CornerRadius="0"
  25. VerticalAlignment="Center" >
  26. <Grid Name="Grid" Height="{TemplateBinding Height}"
  27. Width="{Binding ActualHeight,RelativeSource={RelativeSource Self}}">
  28. <Path Name="Path" SnapsToDevicePixels="False" Data="M1.46967 1.5304L13.4699 13.5304L14.5306 12.4697L2.53032 0.469727L1.46967 1.5304ZM9.99623 11.1174L11.1401 12.2613C10.176 12.7137 9.11463 13.0001 8 13.0001C3.58172 13.0001 0 8.50006 0 7.00006C0 6.2525 0.889611 4.75982 2.32903 3.45038L3.39107 4.5124L3.35064 4.54885C2.71795 5.12245 2.22043 5.72507 1.89225 6.23808C1.62112 6.66189 1.53702 6.91174 1.51122 6.98839L1.50727 7.00006L1.51122 7.01173C1.53702 7.08838 1.62112 7.33823 1.89225 7.76205C2.22043 8.27505 2.71795 8.87768 3.35064 9.45128C4.63846 10.6188 6.29481 11.5001 8 11.5001C8.67993 11.5001 9.3521 11.3599 9.99623 11.1174ZM8 1.00006C6.88543 1.00006 5.82409 1.28643 4.86006 1.73876L6.00394 2.88262C6.64802 2.64015 7.32013 2.50006 8 2.50006C9.70519 2.50006 11.3615 3.3813 12.6494 4.54885C13.2821 5.12245 13.7796 5.72507 14.1078 6.23808C14.3789 6.66189 14.463 6.91174 14.4888 6.98839L14.4927 7.00006L14.4888 7.01173C14.463 7.08838 14.3789 7.33823 14.1078 7.76205C13.7796 8.27505 13.2821 8.87768 12.6494 9.45128L12.6091 9.48762L13.6711 10.5496C15.1104 9.24022 16 7.7476 16 7.00006C16 5.50006 12.4183 1.00006 8 1.00006ZM5 7.00006C5 6.7313 5.03534 6.47079 5.10163 6.22293L6.92836 8.04962C6.93565 8.05707 6.94301 8.06444 6.95046 8.07172L8.77718 9.89842C8.52931 9.96472 8.26878 10.0001 8 10.0001C6.34315 10.0001 5 8.65692 5 7.00006ZM7.223 4.10166L10.8984 7.77701C10.9647 7.5292 11 7.26876 11 7.00006C11 5.34321 9.65685 4.00006 8 4.00006C7.73128 4.00006 7.47082 4.03539 7.223 4.10166Z" Fill="#616469"/>
  29. </Grid>
  30. </Border>
  31. </Grid>
  32. <ControlTemplate.Triggers>
  33. <Trigger Property="IsChecked" Value="True">
  34. <Setter TargetName="Path" Property="Data" Value="M14.4888 7.98833L14.4927 8L14.4888 8.01167C14.463 8.08832 14.3789 8.33817 14.1078 8.76198C13.7796 9.27499 13.2821 9.87762 12.6494 10.4512C11.3615 11.6188 9.70519 12.5 8 12.5C6.29481 12.5 4.63846 11.6188 3.35064 10.4512C2.71795 9.87762 2.22043 9.27499 1.89225 8.76198C1.62112 8.33817 1.53702 8.08832 1.51122 8.01167L1.50727 8L1.51122 7.98833C1.53702 7.91168 1.62112 7.66183 1.89225 7.23802C2.22043 6.72501 2.71795 6.12238 3.35064 5.54879C4.63846 4.38124 6.29481 3.5 8 3.5C9.70519 3.5 11.3615 4.38124 12.6494 5.54879C13.2821 6.12238 13.7796 6.72501 14.1078 7.23802C14.3789 7.66183 14.463 7.91168 14.4888 7.98833ZM16 8C16 9.5 12.4183 14 8 14C3.58172 14 0 9.5 0 8C0 6.5 3.58172 2 8 2C12.4183 2 16 6.5 16 8ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8ZM11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z"></Setter>
  35. </Trigger>
  36. <Trigger Property="IsChecked" Value="False">
  37. <Setter TargetName="Path" Property="Data" Value="M1.46967 1.5304L13.4699 13.5304L14.5306 12.4697L2.53032 0.469727L1.46967 1.5304ZM9.99623 11.1174L11.1401 12.2613C10.176 12.7137 9.11463 13.0001 8 13.0001C3.58172 13.0001 0 8.50006 0 7.00006C0 6.2525 0.889611 4.75982 2.32903 3.45038L3.39107 4.5124L3.35064 4.54885C2.71795 5.12245 2.22043 5.72507 1.89225 6.23808C1.62112 6.66189 1.53702 6.91174 1.51122 6.98839L1.50727 7.00006L1.51122 7.01173C1.53702 7.08838 1.62112 7.33823 1.89225 7.76205C2.22043 8.27505 2.71795 8.87768 3.35064 9.45128C4.63846 10.6188 6.29481 11.5001 8 11.5001C8.67993 11.5001 9.3521 11.3599 9.99623 11.1174ZM8 1.00006C6.88543 1.00006 5.82409 1.28643 4.86006 1.73876L6.00394 2.88262C6.64802 2.64015 7.32013 2.50006 8 2.50006C9.70519 2.50006 11.3615 3.3813 12.6494 4.54885C13.2821 5.12245 13.7796 5.72507 14.1078 6.23808C14.3789 6.66189 14.463 6.91174 14.4888 6.98839L14.4927 7.00006L14.4888 7.01173C14.463 7.08838 14.3789 7.33823 14.1078 7.76205C13.7796 8.27505 13.2821 8.87768 12.6494 9.45128L12.6091 9.48762L13.6711 10.5496C15.1104 9.24022 16 7.7476 16 7.00006C16 5.50006 12.4183 1.00006 8 1.00006ZM5 7.00006C5 6.7313 5.03534 6.47079 5.10163 6.22293L6.92836 8.04962C6.93565 8.05707 6.94301 8.06444 6.95046 8.07172L8.77718 9.89842C8.52931 9.96472 8.26878 10.0001 8 10.0001C6.34315 10.0001 5 8.65692 5 7.00006ZM7.223 4.10166L10.8984 7.77701C10.9647 7.5292 11 7.26876 11 7.00006C11 5.34321 9.65685 4.00006 8 4.00006C7.73128 4.00006 7.47082 4.03539 7.223 4.10166Z"></Setter>
  38. </Trigger>
  39. </ControlTemplate.Triggers>
  40. </ControlTemplate>
  41. </Setter.Value>
  42. </Setter>
  43. </Style>
  44. <Style TargetType="PasswordBox" x:Key="OpenPasswordBoxStyle">
  45. <Setter Property="Height" Value="32"/>
  46. <Setter Property="FontSize" Value="14"/>
  47. <Setter Property="Template">
  48. <Setter.Value>
  49. <ControlTemplate TargetType="PasswordBox">
  50. <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}"
  51. BorderThickness="{TemplateBinding BorderThickness}"
  52. Background="{TemplateBinding Background}"
  53. SnapsToDevicePixels="True"
  54. CornerRadius="5">
  55. <Grid>
  56. <Grid.ColumnDefinitions>
  57. <ColumnDefinition></ColumnDefinition>
  58. <ColumnDefinition Width="24"></ColumnDefinition>
  59. </Grid.ColumnDefinitions>
  60. <Grid Grid.Column="0" Margin="8,0,0,0">
  61. <TextBlock Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}" Grid.Column="1" VerticalAlignment="Center" Foreground="#BBB"
  62. Name="markText" Visibility="Collapsed" FontSize="12" />
  63. <ScrollViewer x:Name="PART_ContentHost" Focusable="false"
  64. HorizontalScrollBarVisibility="Hidden"
  65. VerticalScrollBarVisibility="Hidden"
  66. VerticalAlignment="Center" MinHeight="20"/>
  67. </Grid>
  68. </Grid>
  69. </Border>
  70. <ControlTemplate.Triggers>
  71. <Trigger Property="IsEnabled" Value="false">
  72. <Setter Property="Opacity" TargetName="border" Value="0.56"/>
  73. </Trigger>
  74. <Trigger Property="IsMouseOver" Value="true">
  75. <Setter Property="BorderBrush" TargetName="border" Value="#FF7EB4EA"/>
  76. </Trigger>
  77. <Trigger Property="IsKeyboardFocused" Value="true">
  78. <Setter Property="BorderBrush" TargetName="border" Value="#FF569DE5"/>
  79. </Trigger>
  80. <DataTrigger Binding="{Binding Path = OpenPassword}" Value="">
  81. <Setter Property="Visibility" TargetName="markText" Value="Visible"/>
  82. </DataTrigger>
  83. </ControlTemplate.Triggers>
  84. </ControlTemplate>
  85. </Setter.Value>
  86. </Setter>
  87. </Style>
  88. <Style TargetType="TextBox" x:Key="OpenPasswordTextBoxStyle">
  89. <Setter Property="Height" Value="32"/>
  90. <Setter Property="FontSize" Value="14"/>
  91. <Setter Property="Template">
  92. <Setter.Value>
  93. <ControlTemplate TargetType="TextBox">
  94. <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}"
  95. BorderThickness="{TemplateBinding BorderThickness}"
  96. Background="{TemplateBinding Background}"
  97. SnapsToDevicePixels="True"
  98. CornerRadius="5">
  99. <Grid>
  100. <Grid.ColumnDefinitions>
  101. <ColumnDefinition></ColumnDefinition>
  102. <ColumnDefinition Width="24"></ColumnDefinition>
  103. </Grid.ColumnDefinitions>
  104. <Grid Grid.Column="0" Margin="8,0,0,0">
  105. <TextBlock Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}" Grid.Column="1" VerticalAlignment="Center" Foreground="#BBB"
  106. Name="markText" Visibility="Collapsed" FontSize="12" />
  107. <ScrollViewer x:Name="PART_ContentHost" Focusable="false"
  108. HorizontalScrollBarVisibility="Hidden"
  109. VerticalScrollBarVisibility="Hidden"
  110. VerticalAlignment="Center" MinHeight="20"/>
  111. </Grid>
  112. </Grid>
  113. </Border>
  114. <ControlTemplate.Triggers>
  115. <Trigger Property="IsEnabled" Value="false">
  116. <Setter Property="Opacity" TargetName="border" Value="0.56"/>
  117. </Trigger>
  118. <Trigger Property="IsMouseOver" Value="true">
  119. <Setter Property="BorderBrush" TargetName="border" Value="#FF7EB4EA"/>
  120. </Trigger>
  121. <Trigger Property="IsKeyboardFocused" Value="true">
  122. <Setter Property="BorderBrush" TargetName="border" Value="#FF569DE5"/>
  123. </Trigger>
  124. <DataTrigger Binding="{Binding Path = OpenPassword}" Value="">
  125. <Setter Property="Visibility" TargetName="markText" Value="Visible"/>
  126. </DataTrigger>
  127. </ControlTemplate.Triggers>
  128. </ControlTemplate>
  129. </Setter.Value>
  130. </Setter>
  131. </Style>
  132. <Style TargetType="PasswordBox" x:Key="PermissionsPasswordBoxStyle">
  133. <Setter Property="Height" Value="32"/>
  134. <Setter Property="FontSize" Value="14"/>
  135. <Setter Property="Template">
  136. <Setter.Value>
  137. <ControlTemplate TargetType="PasswordBox">
  138. <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}"
  139. BorderThickness="{TemplateBinding BorderThickness}"
  140. Background="{TemplateBinding Background}"
  141. SnapsToDevicePixels="True"
  142. CornerRadius="5">
  143. <Grid>
  144. <Grid.ColumnDefinitions>
  145. <ColumnDefinition></ColumnDefinition>
  146. <ColumnDefinition Width="24"></ColumnDefinition>
  147. </Grid.ColumnDefinitions>
  148. <Grid Grid.Column="0" Margin="8,0,0,0">
  149. <TextBlock Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}" Grid.Column="1" VerticalAlignment="Center" Foreground="#BBB"
  150. Name="markText" Visibility="Collapsed" FontSize="12" />
  151. <ScrollViewer x:Name="PART_ContentHost" Focusable="false"
  152. HorizontalScrollBarVisibility="Hidden"
  153. VerticalScrollBarVisibility="Hidden"
  154. VerticalAlignment="Center" MinHeight="20"/>
  155. </Grid>
  156. </Grid>
  157. </Border>
  158. <ControlTemplate.Triggers>
  159. <Trigger Property="IsEnabled" Value="false">
  160. <Setter Property="Opacity" TargetName="border" Value="0.56"/>
  161. </Trigger>
  162. <Trigger Property="IsMouseOver" Value="true">
  163. <Setter Property="BorderBrush" TargetName="border" Value="#FF7EB4EA"/>
  164. </Trigger>
  165. <Trigger Property="IsKeyboardFocused" Value="true">
  166. <Setter Property="BorderBrush" TargetName="border" Value="#FF569DE5"/>
  167. </Trigger>
  168. <DataTrigger Binding="{Binding Path = PermissionsPassword}" Value="">
  169. <Setter Property="Visibility" TargetName="markText" Value="Visible"/>
  170. </DataTrigger>
  171. </ControlTemplate.Triggers>
  172. </ControlTemplate>
  173. </Setter.Value>
  174. </Setter>
  175. </Style>
  176. <Style TargetType="TextBox" x:Key="PermissionsPasswordTextBoxStyle">
  177. <Setter Property="Height" Value="32"/>
  178. <Setter Property="FontSize" Value="14"/>
  179. <Setter Property="Template">
  180. <Setter.Value>
  181. <ControlTemplate TargetType="TextBox">
  182. <Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}"
  183. BorderThickness="{TemplateBinding BorderThickness}"
  184. Background="{TemplateBinding Background}"
  185. SnapsToDevicePixels="True"
  186. CornerRadius="5">
  187. <Grid>
  188. <Grid.ColumnDefinitions>
  189. <ColumnDefinition></ColumnDefinition>
  190. <ColumnDefinition Width="24"></ColumnDefinition>
  191. </Grid.ColumnDefinitions>
  192. <Grid Grid.Column="0" Margin="8,0,0,0">
  193. <TextBlock Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}" Grid.Column="1" VerticalAlignment="Center" Foreground="#BBB"
  194. Name="markText" Visibility="Collapsed" FontSize="12" />
  195. <ScrollViewer x:Name="PART_ContentHost" Focusable="false"
  196. HorizontalScrollBarVisibility="Hidden"
  197. VerticalScrollBarVisibility="Hidden"
  198. VerticalAlignment="Center" MinHeight="20"/>
  199. </Grid>
  200. </Grid>
  201. </Border>
  202. <ControlTemplate.Triggers>
  203. <Trigger Property="IsEnabled" Value="false">
  204. <Setter Property="Opacity" TargetName="border" Value="0.56"/>
  205. </Trigger>
  206. <Trigger Property="IsMouseOver" Value="true">
  207. <Setter Property="BorderBrush" TargetName="border" Value="#FF7EB4EA"/>
  208. </Trigger>
  209. <Trigger Property="IsKeyboardFocused" Value="true">
  210. <Setter Property="BorderBrush" TargetName="border" Value="#FF569DE5"/>
  211. </Trigger>
  212. <DataTrigger Binding="{Binding Path = PermissionsPassword}" Value="">
  213. <Setter Property="Visibility" TargetName="markText" Value="Visible"/>
  214. </DataTrigger>
  215. </ControlTemplate.Triggers>
  216. </ControlTemplate>
  217. </Setter.Value>
  218. </Setter>
  219. </Style>
  220. </UserControl.Resources>
  221. <cus:DialogContent Header="{Binding T_Title}">
  222. <cus:DialogContent.Content>
  223. <Grid Margin="16,0,16,0" Width="400">
  224. <Grid.RowDefinitions>
  225. <RowDefinition Height="62"></RowDefinition>
  226. <RowDefinition Height="78"></RowDefinition>
  227. <RowDefinition Height="60"></RowDefinition>
  228. </Grid.RowDefinitions>
  229. <StackPanel Orientation="Vertical">
  230. <CheckBox Name="OpenPasswordChk" IsChecked="{Binding NeedOpenPassword, Mode=TwoWay}" Command="{Binding SetOpenPasswordCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}">
  231. <TextBlock Text="{Binding T_OpenTitle}" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  232. </CheckBox>
  233. <Grid Margin="0,8,0,16" IsEnabled="{Binding ElementName=OpenPasswordChk, Path=IsChecked}" >
  234. <Grid.ColumnDefinitions>
  235. <ColumnDefinition></ColumnDefinition>
  236. <ColumnDefinition Width="24"></ColumnDefinition>
  237. </Grid.ColumnDefinitions>
  238. <PasswordBox Style="{StaticResource OpenPasswordBoxStyle}" help:PasswordBoxHelper.Password="{Binding OpenPassword, Mode=TwoWay , UpdateSourceTrigger=PropertyChanged}" help:PasswordBoxHelper.DisplayText="{Binding OpenPasswordMsg, Mode=TwoWay}" Grid.ColumnSpan="2">
  239. </PasswordBox>
  240. <TextBox Style="{StaticResource OpenPasswordTextBoxStyle}" Text="{Binding OpenPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.ColumnSpan="2" Visibility="{Binding OpenTextVisibility, Mode=TwoWay}" help:PasswordBoxHelper.DisplayText="{Binding OpenPasswordMsg, Mode=TwoWay}" ></TextBox>
  241. <CheckBox IsChecked="{Binding IsOpenPasswordDisplayed,Mode=TwoWay}" x:Name="DisplayOpenPasswordChk" Style="{StaticResource EyeCheckbox}" Height="16" Grid.Column="1" HorizontalAlignment="Left" Panel.ZIndex="1" Command="{Binding DisplayPasswordCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}" Cursor="Hand"></CheckBox>
  242. </Grid>
  243. <CheckBox Grid.Column="1" Height="56" VerticalAlignment="Bottom"></CheckBox>
  244. </StackPanel>
  245. <StackPanel Orientation="Vertical" Grid.Row="1" Margin="0,16,0,0">
  246. <CheckBox Name="PermissionsPasswordChk" IsChecked="{Binding NeedPermissionsPassword, Mode=TwoWay}" Command="{Binding SetPermissionsPasswordCommand}" CommandParameter="{Binding RelativeSource = {RelativeSource Self}}">
  247. <TextBlock Text="{Binding T_PermissionTitle}" FontFamily="Segoe UI" FontSize="14"></TextBlock>
  248. </CheckBox>
  249. <Grid Height="32" Margin="0,8,0,16" IsEnabled="{Binding ElementName=PermissionsPasswordChk, Path=IsChecked}" >
  250. <Grid.ColumnDefinitions>
  251. <ColumnDefinition></ColumnDefinition>
  252. <ColumnDefinition Width="24"></ColumnDefinition>
  253. </Grid.ColumnDefinitions>
  254. <PasswordBox Style="{StaticResource PermissionsPasswordBoxStyle}" help:PasswordBoxHelper.Password="{Binding PermissionsPassword, Mode=TwoWay , UpdateSourceTrigger=PropertyChanged}" help:PasswordBoxHelper.DisplayText="{Binding PermissionsPasswordMsg, Mode=TwoWay}" Grid.ColumnSpan="2" Visibility="{Binding PermissionsPasswordVisibility, Mode=TwoWay}">
  255. </PasswordBox>
  256. <TextBox Style="{StaticResource PermissionsPasswordTextBoxStyle}" Text="{Binding PermissionsPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" help:PasswordBoxHelper.DisplayText="{Binding PermissionsPasswordMsg, Mode=TwoWay}" Grid.ColumnSpan="2" Visibility="{Binding PermissionsTextVisibility, Mode=TwoWay}" ></TextBox>
  257. <CheckBox IsChecked="{Binding IsPermissionsPasswordDisplayed,Mode=TwoWay}" x:Name="DisplayPermissionsPasswordChk" Style="{StaticResource EyeCheckbox}" Height="16" Grid.Column="1" HorizontalAlignment="Left" Panel.ZIndex="1" Command="{Binding DisplayPasswordCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Self}}"></CheckBox>
  258. </Grid>
  259. </StackPanel >
  260. <StackPanel Grid.Row="2" Orientation="Vertical" IsEnabled="{Binding ElementName=PermissionsPasswordChk, Path=IsChecked}" >
  261. <CheckBox Margin="0,8,0,0" IsChecked="{Binding IsRestrictPrinting,Mode=TwoWay}" Command="{Binding SetRestrictCommand}" CommandParameter="{Binding RelativeSource = {RelativeSource Self}}" Tag="Printing">
  262. <TextBlock Text="{Binding T_RestrictPrinting}"></TextBlock>
  263. </CheckBox>
  264. <CheckBox Margin="0,8,0,0" IsChecked="{Binding IsRestrictCopying}" Command="{Binding SetRestrictCommand}" CommandParameter="{Binding RelativeSource = {RelativeSource Self}}" Tag="Copying">
  265. <TextBlock Text="{Binding T_RestrictCopying}"></TextBlock>
  266. </CheckBox>
  267. </StackPanel>
  268. </Grid>
  269. </cus:DialogContent.Content>
  270. <cus:DialogContent.BottmBar>
  271. <Grid Width="400">
  272. <Button Style="{StaticResource btn.ghost}" Width="80" Height="32" HorizontalAlignment="Left" Command="{Binding BatchSetPasswordCommand}" Visibility="Collapsed">
  273. <TextBlock Text="Batch"></TextBlock>
  274. </Button>
  275. <Button Style="{StaticResource Btn.cta}" Width="80" Height="32" Margin="0,0,96,0" HorizontalAlignment="Right" Command="{Binding EncryptCommand}" IsEnabled="{Binding EnableConfirm, Mode=TwoWay}" RenderTransformOrigin="1.5,1192508.3">
  276. <TextBlock Text="{Binding T_Yes}"></TextBlock>
  277. </Button>
  278. <Button Style="{StaticResource btn.ghost}" Width="80" Height="32" HorizontalAlignment="Right" Command="{Binding CancelEncryptCommand}">
  279. <TextBlock Text="{Binding T_No}"></TextBlock>
  280. </Button>
  281. </Grid>
  282. </cus:DialogContent.BottmBar>
  283. </cus:DialogContent>
  284. </UserControl>