Files
Wino-Mail/Wino.Calendar/Args/TimelineCellSelectedArgs.cs

41 lines
1.1 KiB
C#
Raw Normal View History

using System;
using Windows.Foundation;
2025-05-18 14:06:25 +02:00
namespace Wino.Calendar.Args;
/// <summary>
/// When a new timeline cell is selected.
/// </summary>
public class TimelineCellSelectedArgs : EventArgs
{
2025-05-18 14:06:25 +02:00
public TimelineCellSelectedArgs(DateTime clickedDate, Point canvasPoint, Point positionerPoint, Size cellSize)
{
2025-05-18 14:06:25 +02:00
ClickedDate = clickedDate;
CanvasPoint = canvasPoint;
PositionerPoint = positionerPoint;
CellSize = cellSize;
}
2025-05-18 14:06:25 +02:00
/// <summary>
/// Clicked date and time information for the cell.
/// </summary>
public DateTime ClickedDate { get; set; }
2025-05-18 14:06:25 +02:00
/// <summary>
/// Position relative to the cell drawing part of the canvas.
/// Used to detect clicked cell from the position.
/// </summary>
public Point CanvasPoint { get; }
2025-05-18 14:06:25 +02:00
/// <summary>
/// Position relative to the main root positioner element of the drawing canvas.
/// Used to show the create event dialog teaching tip in correct position.
/// </summary>
public Point PositionerPoint { get; }
2025-05-18 14:06:25 +02:00
/// <summary>
/// Size of the cell.
/// </summary>
public Size CellSize { get; }
}