using Avalonia.Controls; namespace DodoSSH.Client.App.Views; /// /// The two host-key decisions, drawn over whatever the window is showing. /// /// /// Its data context is the VaultViewModel, so every binding in the markup is a property of the vault; /// which of the two halves draws is decided there and the two are mutually exclusive. Whether it is on screen /// at all is the shell's business — see MainWindowViewModel.IsHostKeyDecisionShowing, which is also /// what collapses the terminal's WebView underneath it. /// /// In its own file rather than in the window, like every other card here, because nothing inside that window /// can be laid out by a test: WebView2's adapter refuses the headless session's thread. /// internal sealed partial class HostKeyCard : UserControl { public HostKeyCard() => InitializeComponent(); }