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,40 @@
using System;
using System.Windows;
namespace Nodify.Events
{
/// <summary>
/// Represents the method that will handle <see cref="Minimap.Zoom"/> routed event.
/// </summary>
/// <param name="sender">The object where the event handler is attached.</param>
/// <param name="e">The event data.</param>
public delegate void ZoomEventHandler(object sender, ZoomEventArgs e);
/// <summary>
/// Provides data for <see cref="Minimap.Zoom"/> routed event.
/// </summary>
public class ZoomEventArgs : RoutedEventArgs
{
/// <summary>
/// Initializes a new instance of the <see cref="ZoomEventArgs"/> class using the specified <see cref="Zoom"/> and <see cref="Location"/>.
/// </summary>
public ZoomEventArgs(double zoom, Point location)
{
Zoom = zoom;
Location = location;
}
/// <summary>
/// Gets the zoom amount.
/// </summary>
public double Zoom { get; }
/// <summary>
/// Gets the location where the editor should zoom in.
/// </summary>
public Point Location { get; }
protected override void InvokeEventHandler(Delegate genericHandler, object genericTarget)
=> ((ZoomEventHandler)genericHandler)(genericTarget, this);
}
}