[]
        
(Showing Draft Content)

C1.WPF.Calendar.CalendarHelper

CalendarHelper Class

Provides auxiliary properties providing calendar specific information.

Inheritance
CalendarHelper
Implements
IWeakEventListener
Namespace: C1.WPF.Calendar
Assembly: C1.WPF.Calendar.dll
Syntax
public class CalendarHelper : DependencyObject, INotifyPropertyChanged, IWeakEventListener

Constructors

Name Description
CalendarHelper()

Initializes a new instance of the CalendarHelper class.

CalendarHelper(CalendarInfo)

Initializes a new instance of the CalendarHelper class.

Fields

Name Description
_info

Properties

Name Description
Culture

Gets or sets the CultureInfo object which holds culture-specific information.

DateTimeKind

Gets or sets a DateTimeKind value specifying DateTime kind used for saving DateTime values.

EndDayTime

Gets or sets the TimeSpan value specifying the end of the working time.

FirstDate

Gets or sets the DateTime value specifying minimum date allowed.

FullDayNames

Gets an array of culture specific full day names.

FullMonthNames

Gets an array of culture specific full month names.

Holidays

Gets or sets the ObservableCollection<T> object which holds the list of holidays (non-working days in addition to weekends). You cannot set this property in XAML.

Info

Gets the underlying C1.Schedule.CalendarInfo object. For internal use only.

LastDate

Gets or sets the DateTime value specifying maximum date allowed.

StartDayTime

Gets or sets the TimeSpan value specifying the beginning of the working time.

WeekStart

Gets or sets the DayOfWeek value determining the first day of the week. Default is system settings.

WeekendExceptions

Gets or sets the ObservableCollection<T> object which holds the list of weekend days which should be working.

Methods

Name Description
Deactivate()
InvalidateCulture(FrameworkElement)

InvalidateCulture

NewHolidays()

NewHolidays

NewWeekendExceptions()

NewWeekendExceptions

OnPropertyChanged(string)
ReceiveWeakEvent(Type, object, EventArgs)

Receives events from the centralized event manager.

Events

Name Description
PropertyChanged

Occurs when the property of CalendarHelper object is changed.