我正在使用SfSchedule
用于iOS和C#,我无法找到如何更改约会字体大小。
必须是一种简单的东西,但在尝试搜索四周之后,我仍然无法想象如何去做。
答案 0 :(得分:0)
我们可以在SFSchedule中使用SFSchedule或AppointmentLoaded事件的AppointmentStyle属性来自定义计划约会。
我们可以通过设置AppointmentStyle属性的TextStyle来更改计划约会的字体大小。请在上面找到以下代码示例,
通过AppointmentLoaded事件自定义
void Schedule_AppointmentLoaded(object sender, AppointmentLoadedEventArgs e)
{
e.AppointmentStyle.TextStyle = UIFont.SystemFontOfSize(20);
}
通过AppointmentStyle属性自定义
SFAppointmentStyle appointmentstyle = new SFAppointmentStyle();
appointmentstyle.TextStyle = UIFont.SystemFontOfSize(20);
schedule.AppointmentStyle = appointmentstyle;