【发布时间】:2020-05-30 21:04:34
【问题描述】:
我想在 Pabo 日历中显示当前日期,但只有一个只读属性。
如何设置当前日期?
namespace Pabo.Calendar
{
[DefaultEvent("MonthChanged")]
[DefaultProperty("Name")]
[Designer(typeof(MonthCalendarDesigner))]
[ToolboxBitmap(typeof(MonthCalendar), "Pabo.Calendar.MonthCalendar.bmp")]
[ToolboxItem(true)]
public class MonthCalendar : Control
{
public WeekCallBack WeeknumberCallBack;
public MonthCalendar();
[Category("Behavior")]
[Description("")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
public ActiveMonth ActiveMonth { get; }
[Category("Behavior")]
[DefaultValue(0)]
[Description("First day of week.")]
[RefreshProperties(RefreshProperties.All)]
[TypeConverter(typeof(FirstDayOfWeekConverter))]
public int FirstDayOfWeek { get; set; }
}
}
【问题讨论】:
标签: c# winforms datetime calendar desktop-application