'Declaration Public Event AfterPerformAction As AfterWeekViewPerformActionEventHandler
public event AfterWeekViewPerformActionEventHandler AfterPerformAction
The event handler receives an argument of type AfterWeekViewPerformActionEventArgs containing data related to this event. The following AfterWeekViewPerformActionEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Action | The action that has been performed. |
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Private Sub UltraDayView1_BeforePerformAction(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.BeforeDayViewPerformActionEventArgs) Handles UltraDayView1.BeforePerformAction ' Cancel the event if the action is 'DeleteSelectedAppointments', to ' prevent the end user from deleting appointments via the keyboard. If e.Action = UltraDayViewAction.DeleteSelectedAppointments Then e.Cancel = True End If End Sub Private Sub UltraDayView1_AfterPerformAction(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinSchedule.AfterDayViewPerformActionEventArgs) Handles UltraDayView1.AfterPerformAction ' Make the system 'beep' sound if the end user cancels edit mode If e.Action = UltraDayViewAction.EndCurrentEditDiscardChanges Then Beep() End If End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using System.Diagnostics; private void ultraDayView1_BeforePerformAction(object sender, Infragistics.Win.UltraWinSchedule.BeforeDayViewPerformActionEventArgs e) { // Cancel the event if the action is 'DeleteSelectedAppointments', to // prevent the end user from deleting appointments via the keyboard. if ( e.Action == UltraDayViewAction.DeleteSelectedAppointments ) e.Cancel = true; } private void ultraDayView1_AfterPerformAction(object sender, Infragistics.Win.UltraWinSchedule.AfterDayViewPerformActionEventArgs e) { // Make the system 'beep' sound if the end user cancels edit mode if ( e.Action == UltraDayViewAction.EndCurrentEditDiscardChanges ) { // Note: requires a reference to the Microsoft.VisualBasic assembly Microsoft.VisualBasic.Interaction.Beep(); } }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2