I have a simple question. What do I use as a DataFormat when saving a png to the clipboard.
An example that works for Bitmaps is:
DataObject data = new DataObject();
data.SetData(DataFormats.Bitmap, customObject.ToImage(ImageFormat.Bmp));
Clipboard.SetDataObject(data);
My problem:
DataObject data = new DataObject();
data.SetData(DataFormats.**???**, customObject.ToImage(ImageFormat.Png));
Clipboard.SetDataObject(data);
You can register any serializable type with the clipboard provider: