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