Add project files.

This commit is contained in:
Ankitkumar Satapara
2026-04-17 22:31:58 +05:30
commit 21aaef6776
473 changed files with 50152 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
using System;
using System.Windows;
namespace Nodify.Events
{
/// <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);
}
}