Search
ItemEditorEx Class
See Also
 





An item editor that enables modification of the item description as well as the item header.

Namespace: MindFusion.Scheduling.WinForms
Assembly: MindFusion.Scheduling

 Syntax

C#  Copy Code

public sealed class ItemEditorEx : UserControl, IItemEditor

Visual Basic  Copy Code

Public NotInheritable Class ItemEditorEx
    Inherits UserControl
    Implements IItemEditor

 Example

The following example illustrates how to use this class as a default item editor with MindFusion.Scheduling. Because item editors are associated with items at class level, a new empty class is derived from Appointment and the ItemEditorEx is bound to it via the ItemEditor attribute. Finally the Calendar control is instructed to instantiate appointments from the new class by using the InteractiveItemType property.

C#  Copy Code

[ItemEditor(typeof(ItemEditorEx))]
class AppointmentEx : Appointment
{
    // Empty class
}

// ...Somewhere during initialization...
calendar.InteractiveItemType = typeof(AppointmentEx);

Visual Basic  Copy Code

<ItemEditor(GetType(ItemEditorEx))> _
Class AppointmentEx
   Inherits Appointment

    ' Empty class

End Class

' ...Somewhere during initialization...
calendar.InteractiveItemType = GetType(AppointmentEx)

 Inheritance Hierarchy

System.Object
    System.MarshalByRefObject
        System.ComponentModel.Component
            System.Windows.Forms.Control
                System.Windows.Forms.ScrollableControl
                    System.Windows.Forms.ContainerControl
                        System.Windows.Forms.UserControl
                            MindFusion.Scheduling.WinForms.ItemEditorEx

 See Also