MindFusion.Scheduling for Silverlight Programmer's Guide
ItemPresenter Constructor
See Also
 





Initializes a new instance of the ItemPresenter class.

Namespace: MindFusion.Scheduling.Silverlight
Assembly: MindFusion.Scheduling.Silverlight

 Syntax

C#  Copy Code

public ItemPresenter (
    Calendar calendar
)

Visual Basic  Copy Code

Public New ( _
    calendar As Calendar _
)

 Parameters

calendar
The Calendar instance this ItemPresenter is associated with.

 Remarks

When creating a custom ItemPresenter, make sure to provide a constructor with single argument of type Calendar. Otherwise your class will fail to load.

 Example

The following code illustrates a common way to derive from ItemPresenter:

C#  Copy Code
public class MyAppointmentPresenter : ItemPresenter
{
    public MyAppointmentPresenter(Calendar calendar)
        : base(calendar)
    {
        this.DefaultStyleKey = typeof(MyAppointmentPresenter);
    }

    // ...
}
Visual Basic  Copy Code

Public Class MyAppointmentPresenter
    Inherits ItemPresenter

    Public Sub New(ByVal calendar As Calendar)
        MyBase.new(calendar)

        Me.DefaultStyleKey = GetType(MyAppointmentPresenter)

    End Sub

End Class

 See Also

ItemPresenter Class
MindFusion.Scheduling.Silverlight Namespace