|
| 1 | +<ContentDialog |
| 2 | + x:Class="SecureFolderFS.Uno.Dialogs.VaultItemInfoDialog" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:h="using:SecureFolderFS.Uno.Helpers" |
| 7 | + xmlns:l="using:SecureFolderFS.Uno.Localization" |
| 8 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 9 | + xmlns:ucab="using:SecureFolderFS.Uno.UserControls.ActionBlocks" |
| 10 | + Title="{x:Bind ViewModel.IsFile, Mode=OneWay, Converter={StaticResource BoolToStringConverter}, ConverterParameter='true:LOCALIZE|FileInformation:false:LOCALIZE|FolderInformation'}" |
| 11 | + CloseButtonText="{l:ResourceString Rid=Close}" |
| 12 | + DefaultButton="Close" |
| 13 | + RequestedTheme="{x:Bind h:UnoThemeHelper.Instance.CurrentElementTheme, Mode=OneWay}" |
| 14 | + Style="{ThemeResource DefaultContentDialogStyle}" |
| 15 | + mc:Ignorable="d"> |
| 16 | + |
| 17 | + <StackPanel Width="500" Spacing="4"> |
| 18 | + <!-- Plaintext --> |
| 19 | + <ucab:ActionBlockControl Title="{l:ResourceString Rid=Decrypted}" BlockMode="Expandable"> |
| 20 | + <ucab:ActionBlockControl.Icon> |
| 21 | + <FontIcon Glyph="" /> |
| 22 | + </ucab:ActionBlockControl.Icon> |
| 23 | + <ucab:ActionBlockControl.ExpanderContent> |
| 24 | + <Grid Padding="52,0,32,0" ColumnSpacing="48"> |
| 25 | + <Grid.ColumnDefinitions> |
| 26 | + <ColumnDefinition Width="Auto" /> |
| 27 | + <ColumnDefinition /> |
| 28 | + </Grid.ColumnDefinitions> |
| 29 | + |
| 30 | + <StackPanel Grid.Column="0" Spacing="4"> |
| 31 | + <TextBlock Text="{l:ResourceString Rid=Name}" /> |
| 32 | + <TextBlock Text="{l:ResourceString Rid=Path}" /> |
| 33 | + </StackPanel> |
| 34 | + <StackPanel Grid.Column="1" Spacing="4"> |
| 35 | + <TextBlock |
| 36 | + IsTextSelectionEnabled="True" |
| 37 | + Opacity="0.6" |
| 38 | + Text="{x:Bind ViewModel.PlaintextName, Mode=OneWay}" |
| 39 | + TextTrimming="CharacterEllipsis" |
| 40 | + ToolTipService.ToolTip="{x:Bind ViewModel.PlaintextName, Mode=OneWay}" /> |
| 41 | + <TextBlock |
| 42 | + IsTextSelectionEnabled="True" |
| 43 | + Opacity="0.6" |
| 44 | + Text="{x:Bind ViewModel.PlaintextPath, Mode=OneWay}" |
| 45 | + TextTrimming="CharacterEllipsis" |
| 46 | + ToolTipService.ToolTip="{x:Bind ViewModel.PlaintextPath, Mode=OneWay}" /> |
| 47 | + </StackPanel> |
| 48 | + </Grid> |
| 49 | + </ucab:ActionBlockControl.ExpanderContent> |
| 50 | + </ucab:ActionBlockControl> |
| 51 | + |
| 52 | + <!-- Ciphertext --> |
| 53 | + <ucab:ActionBlockControl Title="{l:ResourceString Rid=Encrypted}" BlockMode="Expandable"> |
| 54 | + <ucab:ActionBlockControl.Icon> |
| 55 | + <FontIcon Glyph="" /> |
| 56 | + </ucab:ActionBlockControl.Icon> |
| 57 | + <ucab:ActionBlockControl.ExpanderContent> |
| 58 | + <Grid Padding="52,0,32,0" ColumnSpacing="48"> |
| 59 | + <Grid.ColumnDefinitions> |
| 60 | + <ColumnDefinition Width="Auto" /> |
| 61 | + <ColumnDefinition /> |
| 62 | + </Grid.ColumnDefinitions> |
| 63 | + |
| 64 | + <StackPanel Grid.Column="0" Spacing="4"> |
| 65 | + <TextBlock Text="{l:ResourceString Rid=Name}" /> |
| 66 | + <TextBlock Text="{l:ResourceString Rid=Path}" /> |
| 67 | + </StackPanel> |
| 68 | + <StackPanel Grid.Column="1" Spacing="4"> |
| 69 | + <TextBlock |
| 70 | + IsTextSelectionEnabled="True" |
| 71 | + Opacity="0.6" |
| 72 | + Text="{x:Bind ViewModel.CiphertextName, Mode=OneWay}" |
| 73 | + TextTrimming="CharacterEllipsis" |
| 74 | + ToolTipService.ToolTip="{x:Bind ViewModel.CiphertextName, Mode=OneWay}" /> |
| 75 | + <TextBlock |
| 76 | + IsTextSelectionEnabled="True" |
| 77 | + Opacity="0.6" |
| 78 | + Text="{x:Bind ViewModel.CiphertextPath, Mode=OneWay}" |
| 79 | + TextTrimming="CharacterEllipsis" |
| 80 | + ToolTipService.ToolTip="{x:Bind ViewModel.CiphertextPath, Mode=OneWay}" /> |
| 81 | + </StackPanel> |
| 82 | + </Grid> |
| 83 | + </ucab:ActionBlockControl.ExpanderContent> |
| 84 | + </ucab:ActionBlockControl> |
| 85 | + </StackPanel> |
| 86 | +</ContentDialog> |
0 commit comments