-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proof out the changes necessary for making SharpTreeNode cross platfo…
…rm by proxying System.Windows dependencies
- Loading branch information
1 parent
aa91405
commit 4bd46c4
Showing
27 changed files
with
5,112 additions
and
4,955 deletions.
There are no files selected for viewing
374 changes: 187 additions & 187 deletions
374
ICSharpCode.Decompiler.Tests/TestCases/Correctness/OverloadResolution.cs
Large diffs are not rendered by default.
Oops, something went wrong.
8,612 changes: 4,306 additions & 4,306 deletions
8,612
ICSharpCode.Decompiler.Tests/TestCases/Pretty/CompoundAssignmentTest.cs
Large diffs are not rendered by default.
Oops, something went wrong.
740 changes: 370 additions & 370 deletions
740
ICSharpCode.Decompiler.Tests/TestCases/Pretty/DynamicTests.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
namespace ICSharpCode.TreeView.PlatformAbstractions | ||
{ | ||
public interface IPlatformDataObject | ||
{ | ||
bool GetDataPresent(string format); | ||
object GetData(string format); | ||
|
||
void SetData(string format, object data); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace ICSharpCode.TreeView.PlatformAbstractions | ||
{ | ||
public interface IPlatformDragDrop | ||
{ | ||
XPlatDragDropEffects DoDragDrop(object dragSource, object data, XPlatDragDropEffects allowedEffects); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace ICSharpCode.TreeView.PlatformAbstractions | ||
{ | ||
public interface IPlatformDragEventArgs | ||
{ | ||
XPlatDragDropEffects Effects { get; set; } | ||
IPlatformDataObject Data { get; } | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
SharpTreeView/PlatformAbstractions/IPlatformRoutedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace ICSharpCode.TreeView.PlatformAbstractions | ||
{ | ||
public interface IPlatformRoutedEventArgs | ||
{ | ||
bool Handled { get; set; } | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
SharpTreeView/PlatformAbstractions/WpfWindows/WpfWindowsDataObject.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Windows; | ||
|
||
namespace ICSharpCode.TreeView.PlatformAbstractions.WpfWindows | ||
{ | ||
public 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); | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
SharpTreeView/PlatformAbstractions/WpfWindows/WpfWindowsDragDropManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
using System.Windows; | ||
|
||
namespace ICSharpCode.TreeView.PlatformAbstractions.WpfWindows | ||
{ | ||
public class WpfWindowsDragDropManager : IPlatformDragDrop | ||
{ | ||
public XPlatDragDropEffects DoDragDrop(object dragSource, object data, XPlatDragDropEffects allowedEffects) | ||
{ | ||
return (XPlatDragDropEffects)DragDrop.DoDragDrop(dragSource as DependencyObject, data, (DragDropEffects)allowedEffects); | ||
} | ||
} | ||
} |
Oops, something went wrong.