Added DataTrigger on generate password button to close flyout

This commit is contained in:
2017-10-19 17:23:56 +02:00
committed by BONNEVILLE Geoffroy
parent 54ad395d13
commit 6548d1d9c1
4 changed files with 44 additions and 19 deletions

View File

@@ -0,0 +1,17 @@
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
using Microsoft.Xaml.Interactivity;
namespace ModernKeePass.Actions
{
public class CloseFlyoutAction : DependencyObject, IAction
{
public object Execute(object sender, object parameter)
{
var flyout = sender as Flyout;
flyout?.Hide();
return null;
}
}
}