Xamarin.Forms | ComponentOne
C1.Xamarin.Forms.Calendar Assembly / C1.Xamarin.Forms.Calendar Namespace / C1Calendar Class / ChangeViewModeAsync Method
The target mode.
The display date.
true if the transition is animated.


In This Topic
    ChangeViewModeAsync Method
    In This Topic
    Changes the view mode asynchronously performing an animation.
    Syntax
    'Declaration
     
    
    <AsyncStateMachineAttribute(C1.Xamarin.Forms.Calendar.C1Calendar/d__213)> 
    Public Function ChangeViewModeAsync( _ 
       ByVal mode As CalendarViewMode, _ 
       Optional ByVal displayDate As Nullable(Of Date), _ 
       Optional ByVal animate As Boolean _ 
    ) As Task
    'Usage
     
    
    Dim instance As C1Calendar
    Dim mode As CalendarViewMode
    Dim displayDate As Nullable(Of Date)
    Dim animate As Boolean
    Dim value As Task
     
    value = instance.ChangeViewModeAsync(mode, displayDate, animate)
    [AsyncStateMachine(C1.Xamarin.Forms.Calendar.C1Calendar/d__213)] 
    public Task ChangeViewModeAsync( 
       CalendarViewMode mode, 
       Nullable<DateTime> displayDate, 
       bool animate 
    )

    Parameters

    mode
    The target mode.
    displayDate
    The display date.
    animate
    true if the transition is animated.
    See Also