-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from wieslawsoltes/FixHostWindowDrag
- Loading branch information
Showing
10 changed files
with
268 additions
and
109 deletions.
There are no files selected for viewing
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
29 changes: 29 additions & 0 deletions
29
src/Dock.Model/Core/Events/WindowMoveDragBeginEventArgs.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; | ||
|
||
namespace Dock.Model.Core.Events | ||
{ | ||
/// <summary> | ||
/// Window begin dragging event args. | ||
/// </summary> | ||
public class WindowMoveDragBeginEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Gets dragged window. | ||
/// </summary> | ||
public IDockWindow? Window { get; } | ||
|
||
/// <summary> | ||
/// Gets or sets flag indicating whether window dragging should be canceled. | ||
/// </summary> | ||
public bool Cancel { get; set; } | ||
|
||
/// <summary> | ||
/// Initializes new instance of the <see cref="WindowMoveDragBeginEventArgs"/> class. | ||
/// </summary> | ||
/// <param name="window">The dragged window.</param> | ||
public WindowMoveDragBeginEventArgs(IDockWindow? window) | ||
{ | ||
Window = window; | ||
} | ||
} | ||
} |
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,24 @@ | ||
using System; | ||
|
||
namespace Dock.Model.Core.Events | ||
{ | ||
/// <summary> | ||
/// Window dragging ended event args. | ||
/// </summary> | ||
public class WindowMoveDragEndEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Gets dragged window. | ||
/// </summary> | ||
public IDockWindow? Window { get; } | ||
|
||
/// <summary> | ||
/// Initializes new instance of the <see cref="WindowMoveDragEndEventArgs"/> class. | ||
/// </summary> | ||
/// <param name="window">The dragged window.</param> | ||
public WindowMoveDragEndEventArgs(IDockWindow? window) | ||
{ | ||
Window = window; | ||
} | ||
} | ||
} |
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,24 @@ | ||
using System; | ||
|
||
namespace Dock.Model.Core.Events | ||
{ | ||
/// <summary> | ||
/// Window dragging event args. | ||
/// </summary> | ||
public class WindowMoveDragEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Gets dragged window. | ||
/// </summary> | ||
public IDockWindow? Window { get; } | ||
|
||
/// <summary> | ||
/// Initializes new instance of the <see cref="WindowMoveDragEventArgs"/> class. | ||
/// </summary> | ||
/// <param name="window">The dragged window.</param> | ||
public WindowMoveDragEventArgs(IDockWindow? window) | ||
{ | ||
Window = window; | ||
} | ||
} | ||
} |
Oops, something went wrong.