2017-09-17 10:00:03 -04:00
|
|
|
<Page
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
xmlns:local="using:ModernKeePass.Pages"
|
|
|
|
xmlns:common="using:ModernKeePass.Common"
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:ViewModels="using:ModernKeePass.ViewModels"
|
2017-10-06 17:57:36 +02:00
|
|
|
xmlns:Converters="using:ModernKeePass.Converters"
|
2017-09-17 10:00:03 -04:00
|
|
|
x:Name="pageRoot"
|
|
|
|
x:Class="ModernKeePass.Pages.EntryDetailPage"
|
|
|
|
mc:Ignorable="d">
|
|
|
|
|
2017-10-06 17:57:36 +02:00
|
|
|
<Page.Resources>
|
|
|
|
<Converters:BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
|
|
|
|
<Converters:InverseBooleanToVisibilityConverter x:Key="InverseBooleanToVisibilityConverter"/>
|
|
|
|
</Page.Resources>
|
|
|
|
|
2017-09-17 10:00:03 -04:00
|
|
|
<Page.DataContext>
|
|
|
|
<ViewModels:EntryVm/>
|
|
|
|
</Page.DataContext>
|
2017-10-06 17:57:36 +02:00
|
|
|
|
2017-09-17 10:00:03 -04:00
|
|
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
|
|
<Grid.ChildrenTransitions>
|
|
|
|
<TransitionCollection>
|
|
|
|
<EntranceThemeTransition/>
|
|
|
|
</TransitionCollection>
|
|
|
|
</Grid.ChildrenTransitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="140"/>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
2017-09-29 18:08:20 +02:00
|
|
|
<StackPanel Grid.Row="1" Margin="20,0,0,0" >
|
|
|
|
<StackPanel.Resources>
|
|
|
|
<Style TargetType="TextBlock">
|
|
|
|
<Setter Property="Margin" Value="0,20,0,0"/>
|
|
|
|
</Style>
|
|
|
|
</StackPanel.Resources>
|
2017-10-09 18:40:02 +02:00
|
|
|
<TextBlock x:Name="userTextBlock" TextWrapping="Wrap" Text="User name or login" FontSize="18"/>
|
2017-10-06 16:21:12 -04:00
|
|
|
<TextBox x:Name="userTextBox" HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding UserName, Mode=TwoWay}" Width="350" Height="32" />
|
2017-09-29 18:08:20 +02:00
|
|
|
<TextBlock x:Name="passwordTextBlock" TextWrapping="Wrap" Text="Password" FontSize="18"/>
|
2017-10-06 16:21:12 -04:00
|
|
|
<PasswordBox x:Name="passwordBox" HorizontalAlignment="Left" Password="{Binding Password, Mode=TwoWay}" Width="350" Height="32" IsPasswordRevealButtonEnabled="True" Visibility="{Binding IsRevealPassword, Converter={StaticResource InverseBooleanToVisibilityConverter}}" />
|
|
|
|
<TextBox x:Name="passwordTextBox" HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Password, Mode=TwoWay}" Width="350" Height="32" Visibility="{Binding IsRevealPassword, Converter={StaticResource BooleanToVisibilityConverter}}" />
|
2017-10-06 17:57:36 +02:00
|
|
|
<CheckBox x:Name="checkBox" HorizontalAlignment="Left" Margin="-3,0,0,0" Content="Show password" IsChecked="{Binding IsRevealPassword, Mode=TwoWay}"/>
|
2017-09-29 18:08:20 +02:00
|
|
|
<TextBlock x:Name="urlTextBlock" TextWrapping="Wrap" Text="URL" FontSize="18"/>
|
2017-10-09 18:40:02 +02:00
|
|
|
<StackPanel Orientation="Horizontal" Margin="0,-1,0,-1" Width="350" HorizontalAlignment="Left">
|
|
|
|
<TextBox x:Name="urlTextBox" TextWrapping="Wrap" Text="{Binding Url, Mode=TwoWay}" Height="32" Width="350" MaxLength="256" Padding="0,0,34,0" />
|
|
|
|
<Button Click="UrlButton_Click" Height="34" Margin="-34,0,0,0" Background="Transparent" Padding="2,0" >
|
|
|
|
<SymbolIcon Symbol="Forward" VerticalAlignment="Center" />
|
|
|
|
</Button>
|
|
|
|
</StackPanel>
|
2017-09-29 18:08:20 +02:00
|
|
|
<TextBlock x:Name="notesTextBlock" TextWrapping="Wrap" Text="Notes" FontSize="18"/>
|
|
|
|
<TextBox x:Name="notesTextBox" HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Notes, Mode=TwoWay}" Width="350" Height="200" AcceptsReturn="True" IsSpellCheckEnabled="True" />
|
|
|
|
</StackPanel>
|
2017-09-17 10:00:03 -04:00
|
|
|
|
|
|
|
<!-- Bouton Précédent et titre de la page -->
|
|
|
|
<Grid>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="120"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
2017-10-02 18:40:54 +02:00
|
|
|
<ColumnDefinition Width="200"/>
|
2017-09-17 10:00:03 -04:00
|
|
|
</Grid.ColumnDefinitions>
|
2017-10-06 16:33:44 +02:00
|
|
|
<Button Margin="39,0,39,0" Command="{Binding NavigationHelper.GoBackCommand, ElementName=pageRoot}"
|
2017-09-17 10:00:03 -04:00
|
|
|
Style="{StaticResource NavigationBackButtonNormalStyle}"
|
2017-10-06 16:33:44 +02:00
|
|
|
VerticalAlignment="Center"
|
2017-09-17 10:00:03 -04:00
|
|
|
AutomationProperties.Name="Back"
|
|
|
|
AutomationProperties.AutomationId="BackButton"
|
|
|
|
AutomationProperties.ItemType="Navigation Button"/>
|
2017-10-06 14:56:16 +02:00
|
|
|
<TextBox
|
|
|
|
Grid.Column="1"
|
|
|
|
Text="{Binding Title, Mode=TwoWay}"
|
|
|
|
Style="{StaticResource HeaderTextBoxStyle}"
|
2017-10-06 16:33:44 +02:00
|
|
|
Foreground="{ThemeResource DefaultTextForegroundThemeBrush}"
|
2017-10-06 14:56:16 +02:00
|
|
|
IsHitTestVisible="{Binding IsEditMode}"
|
|
|
|
TextWrapping="NoWrap"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
Margin="0,0,30,0"/>
|
2017-10-06 17:57:36 +02:00
|
|
|
<CommandBar Grid.Column="2" Background="Transparent" IsOpen="True" VerticalAlignment="Center" Margin="0,20,0,0">
|
2017-10-06 14:56:16 +02:00
|
|
|
<AppBarToggleButton Icon="Edit" Label="Edit" IsChecked="{Binding IsEditMode, Mode=TwoWay}" />
|
2017-10-02 18:40:54 +02:00
|
|
|
<AppBarButton Icon="Delete" Label="Delete" Click="AppBarButton_Click" />
|
|
|
|
</CommandBar>
|
2017-09-17 10:00:03 -04:00
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Page>
|