Initializes a new instance of the ItemPresenter class.
Namespace: MindFusion.Scheduling.Silverlight
Assembly: MindFusion.Scheduling.Silverlight
C# Copy Code |
---|
public ItemPresenter ( |
Visual Basic Copy Code |
---|
Public New ( _ |
When creating a custom ItemPresenter, make sure to provide a constructor with single argument of type Calendar. Otherwise your class will fail to load.
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 |