private async Task ChangeSignatureAsync() { if (!HtmlControl.IsDocumentReady) { return; } var context = (MailCompositionContext)DataContext; var path = context.SelectedAccount.SignaturePath; if (string.IsNullOrEmpty(path) || !File.Exists(path)) { HtmlControl.ChangeSignature(string.Empty); return; } var content = await Task.Run(() => File.ReadAllText(path, Encoding.UTF8)); HtmlControl.ChangeSignature(content); }