Scheduler for UWP | ComponentOne
C1.Xaml.Schedule Namespace / AppointmentsCoverPane Class
Members

In This Topic
    AppointmentsCoverPane Class
    In This Topic
    Provides a surface for painting appointment boxes over an arbitrary visual intervals layout.
    Object Model
    AppointmentsCoverPane Class
    Syntax
    'Declaration
     
    
    <TemplatePartAttribute()>
    <StaticAttribute(Windows.UI.Xaml.Controls.IControlStatics, 
       65536, 
       "Windows.Foundation.UniversalApiContract")>
    <ContractVersionAttribute(Windows.Foundation.UniversalApiContract, 65536)>
    <MarshalingBehaviorAttribute(MarshalingType.Agile)>
    <ComposableAttribute(Windows.UI.Xaml.Controls.IControlFactory, 
       CompositionType.Protected, 
       65536, 
       "Windows.Foundation.UniversalApiContract")>
    <ThreadingAttribute(ThreadingModel.Both)>
    <WebHostHiddenAttribute()>
    Public Class AppointmentsCoverPane 
       Inherits CoverElementsPane
    [TemplatePart()]
    [Static(Windows.UI.Xaml.Controls.IControlStatics, 
       65536, 
       "Windows.Foundation.UniversalApiContract")]
    [ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
    [MarshalingBehavior(MarshalingType.Agile)]
    [Composable(Windows.UI.Xaml.Controls.IControlFactory, 
       CompositionType.Protected, 
       65536, 
       "Windows.Foundation.UniversalApiContract")]
    [Threading(ThreadingModel.Both)]
    [WebHostHidden()]
    public class AppointmentsCoverPane : CoverElementsPane 
    Remarks
    AppointmentsCoverPane allows you to visually represent a set of appointments that fit in a time range exposed by a current view, and to draw appointment boxes relative to UI elements representing VisualIntervals covered by the appointment. The AppointmentsCoverPane element, being placed somewhere inside C1Scheduler visual tree (usually in C1Scheduler's ControlTemplate), provides a surface where it draws appointment boxes relative to UI elements representing VisualIntervals. AppointmentsCoverPane is capable to recognize the case when the appointment box must be divided into two or more visual boxes, for example, if appointment covers three days in the Working Week View, AppointmentsCoverPane will automatically draw three boxes for the appointment, each box in a corresponding day column, with starting and ending edges positioned at interval UI elements corresponding to start and end time of the appointment in this day.

    AppointmentsCoverPane provides this functionality for an arbitrary UI representing VisualIntervals. To make it possible, each element that can be treated as VisualInterval UI representative (usually it's an outer (root) element in the C1Scheduler.VisualIntervalTemplate definition) must have the attached CoverElementsPane.OrientationProperty assigned (CoverElementsPane is the base class for AppointmentsCoverPane). The assigned value indicates a chronological flow direction of interval elements and can take Horizontal or Vertical values. For example, interval elements in the Working Week View have it assigned to Vertical, while elements of Month View assign it to Horizontal. A content of an appointment box of AppointmentsCoverPane is represented by DataTemplate defined in the C1Scheduler.IntervalAppointmentTemplate property.

    Inheritance Hierarchy

    System.Object
       Windows.UI.Xaml.DependencyObject
          Windows.UI.Xaml.UIElement
             Windows.UI.Xaml.FrameworkElement
                Windows.UI.Xaml.Controls.Control
                   C1.Xaml.Schedule.CoverElementsPane
                      C1.Xaml.Schedule.AppointmentsCoverPane

    See Also