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

In This Topic
    BeforeViewChange Event
    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
     
    
    <C1DescriptionAttribute("C1Scheduler.BeforeViewChange", "Fired before the range of visible days or the view type is changed.")>
    <C1CategoryAttribute("UI")>
    Public Event BeforeViewChange As EventHandler(Of BeforeViewChangeEventArgs)
    [C1Description("C1Scheduler.BeforeViewChange", "Fired before the range of visible days or the view type is changed.")]
    [C1Category("UI")]
    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.  
    Gets or sets a value that indicates the present state of the event handling.  
    (Inherited from Windows.UI.Xaml.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