C# Class TodoApp.iOS.Controls.CalendarMonthView

Inheritance: UIView
Show file Open project: strongloop/loopback-example-xamarin Class Usage Examples

Public Properties

Property Type Description
BoxHeight int
BoxWidth int
CurrentMonthYear System.DateTime
CurrentSelectedDate System.DateTime
DayCellPadding float
HorizontalPadding int
IsDateAvailable bool>.Func
IsDayMarkedDelegate bool>.Func
LinesCount int
MonthChanged Action
OnDateSelected Action
OnFinishedDateSelection Action
SwipedUp System.Action
VerticalPadding int

Private Properties

Property Type Description
CreateNewGrid MonthGridView
DrawDayLabels void
DrawMonthLabel void
LoadInitialGrids void
MonthViewSwipedLeft void
MonthViewSwipedRight void
MonthViewSwipedUp void

Public Methods

Method Description
CalendarMonthView ( System.DateTime selectedDate, bool showHeader, float width = 320 ) : System
DeselectDate ( ) : void
Draw ( CGRect rect ) : void
LayoutSubviews ( ) : void
MoveCalendarMonths ( bool right, bool animated ) : void

Change calendar month.

RebuildGrid ( bool right, bool animated ) : void

Rebuild month grid.

SetDate ( System.DateTime newDate ) : void
SetNeedsDisplay ( ) : void

Update calendar month view.

Private Methods

Method Description
CreateNewGrid ( System.DateTime date ) : MonthGridView

Create new month grid.

DrawDayLabels ( CGRect rect ) : void

Draw day of week labels.

DrawMonthLabel ( CGRect rect ) : void
LoadInitialGrids ( ) : void
MonthViewSwipedLeft ( UISwipeGestureRecognizer ges ) : void
MonthViewSwipedRight ( UISwipeGestureRecognizer ges ) : void
MonthViewSwipedUp ( UISwipeGestureRecognizer ges ) : void

Method Details

CalendarMonthView() public method

public CalendarMonthView ( System.DateTime selectedDate, bool showHeader, float width = 320 ) : System
selectedDate System.DateTime
showHeader bool
width float
return System

DeselectDate() public method

public DeselectDate ( ) : void
return void

Draw() public method

public Draw ( CGRect rect ) : void
rect CGRect
return void

LayoutSubviews() public method

public LayoutSubviews ( ) : void
return void

MoveCalendarMonths() public method

Change calendar month.
public MoveCalendarMonths ( bool right, bool animated ) : void
right bool Direction of the transition.
animated bool Animate transition.
return void

RebuildGrid() public method

Rebuild month grid.
public RebuildGrid ( bool right, bool animated ) : void
right bool Direction of the transition.
animated bool Animate transition.
return void

SetDate() public method

public SetDate ( System.DateTime newDate ) : void
newDate System.DateTime
return void

SetNeedsDisplay() public method

Update calendar month view.
public SetNeedsDisplay ( ) : void
return void

Property Details

BoxHeight public property

public int BoxHeight
return int

BoxWidth public property

public int BoxWidth
return int

CurrentMonthYear public property

public DateTime,System CurrentMonthYear
return System.DateTime

CurrentSelectedDate public property

public DateTime,System CurrentSelectedDate
return System.DateTime

DayCellPadding public property

public float DayCellPadding
return float

HorizontalPadding public property

public int HorizontalPadding
return int

IsDateAvailable public property

public Func IsDateAvailable
return bool>.Func

IsDayMarkedDelegate public property

public Func IsDayMarkedDelegate
return bool>.Func

LinesCount public property

public int LinesCount
return int

MonthChanged public property

public Action MonthChanged
return Action

OnDateSelected public property

public Action OnDateSelected
return Action

OnFinishedDateSelection public property

public Action OnFinishedDateSelection
return Action

SwipedUp public property

public Action,System SwipedUp
return System.Action

VerticalPadding public property

public int VerticalPadding
return int