gtk-sharp0.0.0.0Gtk# is thread aware, but not thread safe; See the Gtk# Thread Programming for details.Display a calendar and/or allow the user to select a date.With a Calendar widget, dates are presented to the user one month at a time. Additional information and decorations can be added to the Calendar by using the enumeration with the property.Days can be highlighted on the Calendar with or .The following example shows a method that creates a simple calendar displaying day names, headings and week numbers. (These are controlled by passing elements of the type to the method).
// Create a calendar with some simple display options
public Calendar CreateCalendar ()
{
Calendar cal = new Calendar ();
cal.DisplayOptions = CalendarDisplayOptions.ShowHeading |
CalendarDisplayOptions.ShowDayNames |
CalendarDisplayOptions.ShowWeekNumbers;
return cal;
}
The following example shows a typical event handler or capturing the selected date whenever it changes.
// Typical event handler for capturing the selected date
void DaySelected (object obj, EventArgs args)
{
Ca