C# Class Microsoft.Phone.Controls.RecurringDaysPicker

Represents a control that allows the user to choose days of the week.
Inheritance: ListPicker
Show file Open project: Kinnara/WPToolkit

Public Methods

Method Description
RecurringDaysPicker ( ) : System

Initializes a new instance of the RecurringDaysPicker control.

Protected Methods

Method Description
SummarizeDaysOfWeek ( IList selection ) : string

Sumarizes a list of days into a shortened string representation. If all days, all weekdays, or all weekends are in the list, then the string includes the corresponding name rather than listing out all of those days separately. If individual days are listed, they are abreviated. If the list is null or empty, "only once" is returned.

Private Methods

Method Description
DaysOfWeekToString ( List daysList ) : string

Sumarizes a list of days into a shortened string representation. If all days, all weekdays, or all weekends are in the list, then the string includes the corresponding name rather than listing out all of those days separately. If individual days are listed, they are abreviated. If the list is empty, "only once" is returned.

HandleGroups ( List days, IEnumerable &unhandledDays ) : string

Finds a group (weekends, weekdays, every day) within a list of days and returns a string representing that group. Days that are not in a group are set in the unhandledDays out parameter.

Method Details

RecurringDaysPicker() public method

Initializes a new instance of the RecurringDaysPicker control.
public RecurringDaysPicker ( ) : System
return System

SummarizeDaysOfWeek() protected method

Sumarizes a list of days into a shortened string representation. If all days, all weekdays, or all weekends are in the list, then the string includes the corresponding name rather than listing out all of those days separately. If individual days are listed, they are abreviated. If the list is null or empty, "only once" is returned.
protected SummarizeDaysOfWeek ( IList selection ) : string
selection IList The list of days. Can be empty or null.
return string