OpenDatabaseUserControl works

This commit is contained in:
Geoffroy BONNEVILLE
2020-04-21 11:26:02 +02:00
parent 310bd777b2
commit 75f6e2f840
8 changed files with 42 additions and 37 deletions

View File

@@ -14,6 +14,19 @@ namespace ModernKeePass.Views.UserControls
public sealed partial class UpdateCredentialsUserControl
{
public UpdateCredentialsViewModel ViewModel => Grid.DataContext as UpdateCredentialsViewModel;
public string ButtonLabel
{
get { return (string)GetValue(ButtonLabelProperty); }
set { SetValue(ButtonLabelProperty, value); }
}
public static readonly DependencyProperty ButtonLabelProperty =
DependencyProperty.Register(
nameof(ButtonLabel),
typeof(string),
typeof(UpdateCredentialsUserControl),
new PropertyMetadata("OK", (o, args) => { }));
public string DatabaseFilePath
{
get { return (string) GetValue(DatabaseFilePathProperty); }