Table of Contents

Class CalendarView

Namespace
UraniumUI.Controls
Assembly
UraniumUI.dll
public class CalendarView : ContentView, INotifyPropertyChanged, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, ILayout, ILayoutController, IVisualTreeElement, IContentView, IView, IElement, ITransform, IPadding, ICrossPlatformLayout
Inheritance
CalendarView
Implements
Inherited Members
Extension Methods

Constructors

CalendarView()

public CalendarView()

Fields

DisplayDateProperty

public static readonly BindableProperty DisplayDateProperty

Field Value

BindableProperty

FirstDayOfWeekProperty

public static readonly BindableProperty FirstDayOfWeekProperty

Field Value

BindableProperty

MaximumDateProperty

public static readonly BindableProperty MaximumDateProperty

Field Value

BindableProperty

MinimumDateProperty

public static readonly BindableProperty MinimumDateProperty

Field Value

BindableProperty

SelectedDateProperty

public static readonly BindableProperty SelectedDateProperty

Field Value

BindableProperty

Properties

DisplayDate

public DateTime DisplayDate { get; set; }

Property Value

DateTime

FirstDayOfWeek

public DayOfWeek FirstDayOfWeek { get; set; }

Property Value

DayOfWeek

MaximumDate

public DateTime? MaximumDate { get; set; }

Property Value

DateTime?

MinimumDate

public DateTime? MinimumDate { get; set; }

Property Value

DateTime?

NextMonthCommand

public ICommand NextMonthCommand { get; }

Property Value

ICommand

PreviousMonthCommand

public ICommand PreviousMonthCommand { get; }

Property Value

ICommand

SelectedDate

public DateTime? SelectedDate { get; set; }

Property Value

DateTime?

VisibleDates

public IReadOnlyList<CalendarDay> VisibleDates { get; }

Property Value

IReadOnlyList<CalendarDay>

Methods

BuildLayout()

protected virtual void BuildLayout()

BuildVisibleDates()

protected IReadOnlyList<CalendarDay> BuildVisibleDates()

Returns

IReadOnlyList<CalendarDay>

ClearSelection()

public void ClearSelection()

IsDateEnabled(DateTime)

protected virtual bool IsDateEnabled(DateTime date)

Parameters

date DateTime

Returns

bool

OnSelectedDateChanged(DateTime?)

protected virtual void OnSelectedDateChanged(DateTime? selectedDate)

Parameters

selectedDate DateTime?

OnSizeAllocated(double, double)

Method that is called when the size of the element is set during a layout cycle. Implement this method to add class handling for this event.

protected override void OnSizeAllocated(double width, double height)

Parameters

width double

The new width of the element.

height double

The new height of the element.

TrySelectDate(DateTime)

public bool TrySelectDate(DateTime date)

Parameters

date DateTime

Returns

bool

UpdateCalendar()

protected virtual void UpdateCalendar()

Events

DateSelected

public event EventHandler<CalendarDateSelectedEventArgs> DateSelected

Event Type

EventHandler<CalendarDateSelectedEventArgs>