The IntervalAppointmentPresenter class represents
the single appointment element in the C1Scheduler UI
and allows in-place appointment editing.
Namespace:
C1.Silverlight.ScheduleAssembly: C1.Silverlight.Schedule (in C1.Silverlight.Schedule.dll)
Syntax
C# |
---|
[TemplateVisualStateAttribute(Name = "Unfocused", GroupName = "FocusStates")] [TemplatePartAttribute(Name = "PART_Subject", Type = typeof(TextBox))] [TemplateVisualStateAttribute(Name = "Normal", GroupName = "CommonStates")] [TemplateVisualStateAttribute(Name = "Selected", GroupName = "SelectionStates")] [TemplateVisualStateAttribute(Name = "Focused", GroupName = "FocusStates")] [TemplatePartAttribute(Name = "PART_AppointmentWrapPanel", Type = typeof(AppointmentWrapPanel))] [TemplateVisualStateAttribute(Name = "Unselected", GroupName = "SelectionStates")] [TemplateVisualStateAttribute(Name = "MouseOver", GroupName = "CommonStates")] public class IntervalAppointmentPresenter : Control, IPropertyChangedListener |
Visual Basic |
---|
<TemplateVisualStateAttribute(Name := "Unfocused", GroupName := "FocusStates")> _ <TemplatePartAttribute(Name := "PART_Subject", Type := GetType(TextBox))> _ <TemplateVisualStateAttribute(Name := "Normal", GroupName := "CommonStates")> _ <TemplateVisualStateAttribute(Name := "Selected", GroupName := "SelectionStates")> _ <TemplateVisualStateAttribute(Name := "Focused", GroupName := "FocusStates")> _ <TemplatePartAttribute(Name := "PART_AppointmentWrapPanel", Type := GetType(AppointmentWrapPanel))> _ <TemplateVisualStateAttribute(Name := "Unselected", GroupName := "SelectionStates")> _ <TemplateVisualStateAttribute(Name := "MouseOver", GroupName := "CommonStates")> _ Public Class IntervalAppointmentPresenter _ Inherits Control _ Implements IPropertyChangedListener |
Remarks
When user clicks on the IntervalAppointmentPresenter it tries to find and focus child element
with x:Name="PART_Subject". It is used for switching appointment element
into in-place editing mode.
Inheritance Hierarchy
System..::..Object
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight.Schedule..::..IntervalAppointmentPresenter
System.Windows..::..DependencyObject
System.Windows..::..UIElement
System.Windows..::..FrameworkElement
System.Windows.Controls..::..Control
C1.Silverlight.Schedule..::..IntervalAppointmentPresenter