You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
689 B
33 lines
689 B
using System.Windows;
|
|
|
|
using ICSharpCode.ILSpyX.TreeView.PlatformAbstractions;
|
|
|
|
namespace ICSharpCode.ILSpy.Controls.TreeView
|
|
{
|
|
public sealed class WpfWindowsDataObject : IPlatformDataObject
|
|
{
|
|
private readonly IDataObject _dataObject;
|
|
|
|
public WpfWindowsDataObject(IDataObject dataObject)
|
|
{
|
|
_dataObject = dataObject;
|
|
}
|
|
|
|
public object GetData(string format)
|
|
{
|
|
return _dataObject.GetData(format);
|
|
}
|
|
|
|
public bool GetDataPresent(string format)
|
|
{
|
|
return _dataObject.GetDataPresent(format);
|
|
}
|
|
|
|
public void SetData(string format, object data)
|
|
{
|
|
_dataObject.SetData(format, data);
|
|
}
|
|
|
|
object IPlatformDataObject.UnderlyingDataObject => _dataObject;
|
|
}
|
|
}
|