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