-
-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Nodify] Add ResizeCompleted event to GroupingNode
- Loading branch information
Showing
4 changed files
with
98 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
using System; | ||
using System.Windows; | ||
|
||
namespace Nodify | ||
{ | ||
/// <summary> | ||
/// Represents the method that will handle resize related routed events. | ||
/// </summary> | ||
/// <param name="sender">The sender of this event.</param> | ||
/// <param name="e">The event data.</param> | ||
public delegate void ResizeEventHandler(object sender, ResizeEventArgs e); | ||
|
||
/// <summary> | ||
/// Provides data for resize related routed events. | ||
/// </summary> | ||
public class ResizeEventArgs : RoutedEventArgs | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ResizeEventArgs"/> class with the previous and the new <see cref="Size"/>. | ||
/// </summary> | ||
/// <param name="previousSize">The previous size associated with this event.</param> | ||
/// <param name="newSize">The new size associated with this event.</param> | ||
public ResizeEventArgs(Size previousSize, Size newSize) | ||
{ | ||
PreviousSize = previousSize; | ||
NewSize = newSize; | ||
} | ||
|
||
/// <summary> | ||
/// Gets the previous size of the object. | ||
/// </summary> | ||
public Size PreviousSize { get; } | ||
|
||
|
||
/// <summary> | ||
/// Gets the new size of the object. | ||
/// </summary> | ||
public Size NewSize { get; } | ||
|
||
protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget) | ||
=> ((ResizeEventHandler)genericHandler)(genericTarget, this); | ||
} | ||
} |
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