MindFusion.Wpf Pack Programmer's Guide
ItemPresenterAttribute Class
See Also
 





Associates a custom item presenter with a schedule item class.

Namespace: MindFusion.Scheduling.Wpf
Assembly: MindFusion.Scheduling.Wpf

 Syntax

C#  Copy Code

public class ItemPresenterAttribute : Attribute

Visual Basic  Copy Code

Public Class ItemPresenterAttribute
    Inherits Attribute

 Example

The following example illustrates how to associate a custom ItemPresenter class with a custom Appointment class. The example assumes that the custom ItemPresenter class is already defined and is named MyItemPresenter.

C#  Copy Code
[ItemPresenter(typeof(MyAppointmentPresenter))]
public class MyAppointment : Appointment
{
    // ...
}
Visual Basic  Copy Code
<ItemPresenter(GetType(MyAppointmentPresenter))> _
Public Class MyAppointment
    Inherits Appointment

    ' ...

End Class

 Inheritance Hierarchy

System.Object
    System.Attribute
        MindFusion.Scheduling.Wpf.ItemPresenterAttribute

 See Also

ItemPresenterAttribute Members
MindFusion.Scheduling.Wpf Namespace