How do I Copy text to the clipboard in UWP with C#?
ExampleCopy code to clipboard
var dataPackage = new DataPackage(); dataPackage.SetText("abc"); Windows.ApplicationModel.DataTransfer.Clipboard.SetContent(dataPackage);
You can only access the clipboard when the calling application is in focus on the UI thread.
Link to documentation or other source
22 Nov 2019
Author: Loek van den Ouweland
Would you recommend this example to your colleagues?