mirror of
https://github.com/wismna/ModernKeePass.git
synced 2025-10-03 23:50:18 -04:00
Added DataTrigger on generate password button to close flyout
This commit is contained in:
17
ModernKeePass/Actions/CloseFlyoutAction.cs
Normal file
17
ModernKeePass/Actions/CloseFlyoutAction.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user