Public Access
23 lines
714 B
C#
23 lines
714 B
C#
using Avalonia.Controls;
|
|
using DodoSSH.Client.Shell.ViewModels;
|
|
|
|
namespace DodoSSH.Client.App.Views;
|
|
|
|
/// <summary>
|
|
/// The question in front of deleting a host, a key or a password.
|
|
/// </summary>
|
|
/// <remarks>
|
|
/// Its data context is the <c>VaultViewModel</c>, in all three of the places it is shown, so every binding
|
|
/// in the markup is a property of the vault. See <see cref="HostDrawer"/>, <see cref="HostsScreen"/> and
|
|
/// <see cref="KeychainScreen"/>.
|
|
/// </remarks>
|
|
internal sealed partial class ConfirmDeleteCard : UserControl
|
|
{
|
|
public ConfirmDeleteCard()
|
|
{
|
|
InitializeComponent();
|
|
|
|
SafeAnswerFocus.Follow(this, nameof(VaultViewModel.PendingDeletion), () => CancelButton);
|
|
}
|
|
}
|