I guess there's a bug in Clipboard.SetText(). Clipboard.SetDataObject() works, though.
This commit is contained in:
@@ -113,11 +113,16 @@ namespace WinUI
|
||||
{
|
||||
try
|
||||
{
|
||||
Clipboard.SetText(nodeId);
|
||||
Clipboard.SetDataObject(nodeId);
|
||||
}
|
||||
catch (ArgumentNullException)
|
||||
{
|
||||
// tried to copy a null nodeId
|
||||
Console.WriteLine("ArgumentNullException");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.WriteLine(ex.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user