Clowd.Clipboard
Clowd.Clipboard copied to clipboard
System.NullReferenceException
Got code
if(!string.IsNullOrEmpty(imagePath))
{
var bitmap = new Bitmap(imagePath);
Clowd.Clipboard.ClipboardAvalonia.SetImage(bitmap);
builder.KeyDown(Keys.Control).SendKeys("v").KeyUp(Keys.Control).Build().Perform();
}
Clowd.Clipboard.ClipboardAvalonia.SetText(text);
builder.KeyDown(Keys.Control).SendKeys("v").KeyUp(Keys.Control).Build().Perform();
It is working at first. But on second or N-th call I got System.NullReferenceException when trying to access Clowd.Clipboard.ClipboardAvalonia