Scheduler for WPF | ComponentOne
C1.WPF.Schedule Namespace / C1Scheduler Class / BeforeViewChange Event

In This Topic
    BeforeViewChange Event (C1Scheduler)
    In This Topic
    Occurs immediately before the next actions:
    • When range of visible dates is changed by the associated calendar control.
    • When view type is changed by the ViewType property change.
    • When range of visible dates and(or) view type is changed by the C1Scheduler commands.
    Syntax
    'Declaration
     
    
    Public Event BeforeViewChange As EventHandler(Of BeforeViewChangeEventArgs)
    public event EventHandler<BeforeViewChangeEventArgs> BeforeViewChange
    Event Data

    The event handler receives an argument of type BeforeViewChangeEventArgs containing data related to this event. The following BeforeViewChangeEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets or sets the range of dates which should be selected in the view.  
    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    (Inherited from System.Windows.RoutedEventArgs)
    Gets or sets Style value determining which Style should be selected.  
    Remarks
    Use this event to cancel action, to set other view type or to set other range of dates.
    See Also