C# Class escoz.CalendarMonthView

Inheritance: UIView
Mostra file Open project: rid00z/Xamarin.Forms.Calendar Class Usage Examples

Public Properties

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

Public Methods

Method Description
CalendarMonthView ( System.DateTime selectedDate, bool showHeader, float width = 320 ) : System
DeselectDate ( ) : void
Draw ( RectangleF rect ) : void
LayoutSubviews ( ) : void
MoveCalendarMonths ( bool right, bool animated ) : void
RebuildGrid ( bool right, bool animated ) : void
SetDate ( System.DateTime newDate ) : void
SetNeedsDisplay ( ) : void
p_monthViewSwipedLeft ( UISwipeGestureRecognizer ges ) : void
p_monthViewSwipedRight ( UISwipeGestureRecognizer ges ) : void
p_monthViewSwipedUp ( UISwipeGestureRecognizer ges ) : void

Private Methods

Method Description
CreateNewGrid ( System.DateTime date ) : MonthGridView
DrawDayLabels ( RectangleF rect ) : void
DrawMonthLabel ( RectangleF rect ) : void
HandleNextMonthTouch ( object sender, EventArgs e ) : void
HandlePreviousMonthTouch ( object sender, EventArgs e ) : void
LoadInitialGrids ( ) : 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 ( RectangleF rect ) : void
rect System.Drawing.RectangleF
return void

LayoutSubviews() public method

public LayoutSubviews ( ) : void
return void

MoveCalendarMonths() public method

public MoveCalendarMonths ( bool right, bool animated ) : void
right bool
animated bool
return void

RebuildGrid() public method

public RebuildGrid ( bool right, bool animated ) : void
right bool
animated bool
return void

SetDate() public method

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

SetNeedsDisplay() public method

public SetNeedsDisplay ( ) : void
return void

p_monthViewSwipedLeft() public method

public p_monthViewSwipedLeft ( UISwipeGestureRecognizer ges ) : void
ges UISwipeGestureRecognizer
return void

p_monthViewSwipedRight() public method

public p_monthViewSwipedRight ( UISwipeGestureRecognizer ges ) : void
ges UISwipeGestureRecognizer
return void

p_monthViewSwipedUp() public method

public p_monthViewSwipedUp ( UISwipeGestureRecognizer ges ) : void
ges UISwipeGestureRecognizer
return void

Property Details

BoxHeight public_oe property

public int BoxHeight
return int

BoxWidth public_oe property

public int BoxWidth
return int

CurrentMonthYear public_oe property

public DateTime,System CurrentMonthYear
return System.DateTime

CurrentSelectedDate public_oe property

public DateTime,System CurrentSelectedDate
return System.DateTime

IsDateAvailable public_oe property

public Func IsDateAvailable
return bool>.Func

IsDayMarkedDelegate public_oe property

public Func IsDayMarkedDelegate
return bool>.Func

MonthChanged public_oe property

public Action MonthChanged
return Action

OnDateSelected public_oe property

public Action OnDateSelected
return Action

OnFinishedDateSelection public_oe property

public Action OnFinishedDateSelection
return Action

SwipedUp public_oe property

public Action,System SwipedUp
return System.Action