Class AppointmentMapping
Represents a schedule appointment mapping with custom appointment.
Inheritance
Namespace: Syncfusion.UI.Xaml.Scheduler
Assembly: Syncfusion.SfScheduler.WPF.dll
Syntax
public class AppointmentMapping : Object
Constructors
AppointmentMapping()
Declaration
public AppointmentMapping()
Properties
AppointmentBackground
Gets or sets which maps the property name of a custom class, which is equivalent to the AppointmentBackground of ScheduleAppointment.
Declaration
public string AppointmentBackground { get; set; }
Property Value
Type |
---|
System.String |
EndTime
Gets or sets which maps the property name of a custom class, which is equivalent to the EndTime of ScheduleAppointment.
Declaration
public string EndTime { get; set; }
Property Value
Type |
---|
System.String |
EndTimeZone
Gets or sets which maps the property name of a custom class, which is equivalent to the EndTimeZone of ScheduleAppointment.
Declaration
public string EndTimeZone { get; set; }
Property Value
Type |
---|
System.String |
Foreground
Gets or sets which maps the property name of a custom class, which is equivalent to the Foreground of ScheduleAppointment.
Declaration
public string Foreground { get; set; }
Property Value
Type |
---|
System.String |
Id
Gets or sets which maps the property name of a custom class, which is equivalent to the Id of ScheduleAppointment.
Declaration
public string Id { get; set; }
Property Value
Type |
---|
System.String |
See Also
IsAllDay
Gets or sets which maps the property name of a custom class, which is equivalent to the IsAllDay of ScheduleAppointment.
Declaration
public string IsAllDay { get; set; }
Property Value
Type |
---|
System.String |
Location
Gets or sets which maps the property name of a custom class, which is equivalent to the Location of ScheduleAppointment.
Declaration
public string Location { get; set; }
Property Value
Type |
---|
System.String |
MinimumAppointmentHeight
Gets or sets which maps the property name of a custom class, which is equivalent to the MinimumAppointmentHeight of ScheduleAppointment.
Declaration
public string MinimumAppointmentHeight { get; set; }
Property Value
Type |
---|
System.String |
Notes
Gets or sets which maps the property name of a custom class, which is equivalent to the Notes of ScheduleAppointment.
Declaration
public string Notes { get; set; }
Property Value
Type |
---|
System.String |
RecurrenceExceptionDates
Gets or sets which maps the property name of a custom class, which is equivalent to the RecurrenceExceptionDates of ScheduleAppointment.
Declaration
public string RecurrenceExceptionDates { get; set; }
Property Value
Type |
---|
System.String |
RecurrenceId
Gets or sets which maps the property name of a custom class, which is equivalent to the RecurrenceId of ScheduleAppointment.
Declaration
public string RecurrenceId { get; set; }
Property Value
Type |
---|
System.String |
RecurrenceRule
Gets or sets which maps the property name of a custom class, which is equivalent to the RecurrenceRule of ScheduleAppointment.
Declaration
public string RecurrenceRule { get; set; }
Property Value
Type |
---|
System.String |
ReminderMapping
Gets or sets the reminder data object mapping to the SchedulerReminder of the appointment. The ReminderMapping class contains a set of properties whose names are similar to the properties declared within the scheduler reminder class.
Declaration
public ReminderMapping ReminderMapping { get; set; }
Property Value
Type |
---|
ReminderMapping |
Examples
The following code snippets used to configure the custom appointment and reminder.
public class Meeting
{
public string EventName { get; set; }
public DateTime From { get; set; }
public DateTime To { get; set; }
public Brush BackgroundColor { get; set; }
public Brush ForegroundColor { get; set; }
public ObservableCollection<Reminder> Reminders { get; set; }
}
public class Reminder
{
public TimeSpan TimeInterval { get; set; }
public bool Dismissed { get; set; }
}
<syncfusion:SfScheduler x:Name="Schedule"
ViewType="Week"
ItemsSource="{Binding Meetings}">
<syncfusion:SfScheduler.AppointmentMapping>
<syncfusion:AppointmentMapping
Subject = "EventName"
StartTime="From"
EndTime="To"
AppointmentBackground="BackgroundColor"
Foreground="ForegroundColor"
Reminders="Reminders">
<syncfusion:AppointmentMapping.ReminderMapping>
<syncfusion:ReminderMapping ReminderTimeInterval = "TimeInterval"
IsDismissed="Dismissed"/>
</syncfusion:AppointmentMapping.ReminderMapping>
</syncfusion:AppointmentMapping>
</syncfusion:SfScheduler.AppointmentMapping>
</syncfusion:SfScheduler>
AppointmentMapping dataMapping = new AppointmentMapping();
dataMapping.Subject = "EventName";
dataMapping.StartTime = "From";
dataMapping.EndTime = "To";
dataMapping.AppointmentBackground = "BackgroundColor";
dataMapping.Foreground = "ForegroundColor";
dataMapping.Reminders = "Reminders";
ReminderMapping reminderMapping = new ReminderMapping();
reminderMapping.ReminderTimeInterval = "TimeInterval";
reminderMapping.IsDismissed = "Dismissed";
dataMapping.ReminderMapping = reminderMapping;
Schedule.AppointmentMapping = dataMapping;
var appointments = new ObservableCollection<Meeting>();
var appointment = new Meeting();
appointment.EventName = "General Meeting";
appointment.From = DateTime.Now.Date.AddHours(9);
appointment.To = appointment.From.AddHours(1);
appointment.BackgroundColor = new SolidColorBrush(Color.FromArgb(255, 45, 125, 56));
appointment.Reminders = new ObservableCollection<Reminder>()
{
new Reminder() { TimeInterval = new TimeSpan(1, 0, 0) },
};
appointments.Add(appointment);
this.Schedule.ItemsSource = appointments;
See Also
Reminders
Gets or sets the name of the property of reminder data object for the Reminders property.
Declaration
public string Reminders { get; set; }
Property Value
Type |
---|
System.String |
See Also
ResourceIdCollection
Gets or sets which maps the property name of a custom class, which is equivalent to the ResourceIdCollection of ScheduleAppointment.
Declaration
public string ResourceIdCollection { get; set; }
Property Value
Type |
---|
System.String |
See Also
StartTime
Gets or sets which maps the property name of a custom class, which is equivalent to the StartTime of ScheduleAppointment.
Declaration
public string StartTime { get; set; }
Property Value
Type |
---|
System.String |
StartTimeZone
Gets or sets which maps the property name of a custom class, which is equivalent to the StartTimeZone of ScheduleAppointment.
Declaration
public string StartTimeZone { get; set; }
Property Value
Type |
---|
System.String |
Subject
Gets or sets which maps the property name of a custom class, which is equivalent to the Subject of ScheduleAppointment.
Declaration
public string Subject { get; set; }
Property Value
Type |
---|
System.String |