From 324553c58c8a94229595e9b98ab548a82594d94c Mon Sep 17 00:00:00 2001 From: bg45 Date: Sat, 30 Sep 2017 09:00:32 -0400 Subject: [PATCH] Creation of a UserControl to handle password input --- .../Controls/PasswordUserControl.xaml | 20 ++++++++++++++ .../Controls/PasswordUserControl.xaml.cs | 27 +++++++++++++++++++ ModernKeePass/ModernKeePass.csproj | 7 +++++ ModernKeePass/Pages/OpenDatabasePage.xaml | 2 +- 4 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 ModernKeePass/Controls/PasswordUserControl.xaml create mode 100644 ModernKeePass/Controls/PasswordUserControl.xaml.cs diff --git a/ModernKeePass/Controls/PasswordUserControl.xaml b/ModernKeePass/Controls/PasswordUserControl.xaml new file mode 100644 index 0000000..d27b6e6 --- /dev/null +++ b/ModernKeePass/Controls/PasswordUserControl.xaml @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/ModernKeePass/Controls/PasswordUserControl.xaml.cs b/ModernKeePass/Controls/PasswordUserControl.xaml.cs new file mode 100644 index 0000000..904e272 --- /dev/null +++ b/ModernKeePass/Controls/PasswordUserControl.xaml.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Runtime.InteropServices.WindowsRuntime; +using Windows.Foundation; +using Windows.Foundation.Collections; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Controls; +using Windows.UI.Xaml.Controls.Primitives; +using Windows.UI.Xaml.Data; +using Windows.UI.Xaml.Input; +using Windows.UI.Xaml.Media; +using Windows.UI.Xaml.Navigation; + +// Pour en savoir plus sur le modèle d'élément Contrôle utilisateur, consultez la page http://go.microsoft.com/fwlink/?LinkId=234236 + +namespace ModernKeePass.Controls +{ + public sealed partial class PasswordUserControl : UserControl + { + public PasswordUserControl() + { + this.InitializeComponent(); + } + } +} diff --git a/ModernKeePass/ModernKeePass.csproj b/ModernKeePass/ModernKeePass.csproj index 5335855..42c6d77 100644 --- a/ModernKeePass/ModernKeePass.csproj +++ b/ModernKeePass/ModernKeePass.csproj @@ -116,6 +116,9 @@ + + PasswordUserControl.xaml + @@ -162,6 +165,10 @@ MSBuild:Compile Designer + + Designer + MSBuild:Compile + MSBuild:Compile Designer diff --git a/ModernKeePass/Pages/OpenDatabasePage.xaml b/ModernKeePass/Pages/OpenDatabasePage.xaml index a068676..2c008ad 100644 --- a/ModernKeePass/Pages/OpenDatabasePage.xaml +++ b/ModernKeePass/Pages/OpenDatabasePage.xaml @@ -32,7 +32,7 @@ - +