Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
860
How to determine timeslot after a right click
posted

Is there a way to determine the time slot that a user right clicked on when you are handling an event raised from the right click menu.

THe ActiveDay property of CalendarInfo tells you th day, but is there a way to get the timeslot also.

 

  • 69832
    Offline posted

    private void dayView_MouseDown(object sender, MouseEventArgs e)
    {
        UltraDayView dayView = sender as UltraDayView;
        TimeSlot timeSlot = e.Button == MouseButtons.Right ? dayView.GetTimeSlotFromPoint( e.Location ) : null;
        if ( timeSlot != null )
        {
        }
    }