var memoryStream = (MemoryStream) System.Windows.Clipboard.GetData("application/x-roblox-studio");
var streamReader = new StreamReader(memoryStream);
string xml = streamReader.ReadToEnd();
MessageBox.Show(xml);
I spent many hours today seeing if browsers could copy arbitrary content to the clipboard but with the MIME type application/x-roblox-studio
(normally it's just text/plain
) but then I found this page: