Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box. Subsequent ordering happens sequentially from top to bottom or from right to left, depending on the value of the Orientation property. If Orientation property is Vertical this panel behaves as the base class. If Orientation property is Horizontal then AppointmentWrapPanel tries to position child elements in available space. For example, it doesn't wrap the child to the next line if the next line invisible. Instead, it shows as much as possible in the last visible line. When user clicks on the panel 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.

Namespace:  C1.WPF.C1Schedule
Assembly:  C1.WPF.C1Schedule (in C1.WPF.C1Schedule.dll)

Syntax

C#
[TemplatePartAttribute(Name = "PART_Subject", Type = typeof(TextBox))]
public class AppointmentWrapPanel : WrapPanel, 
	IWeakEventListener
Visual Basic (Declaration)
<TemplatePartAttribute(Name := "PART_Subject", Type := GetType(TextBox))> _
Public Class AppointmentWrapPanel _
	Inherits WrapPanel _
	Implements IWeakEventListener

Inheritance Hierarchy

System..::..Object
  System.Windows.Threading..::..DispatcherObject
    System.Windows..::..DependencyObject
      System.Windows.Media..::..Visual
        System.Windows..::..UIElement
          System.Windows..::..FrameworkElement
            System.Windows.Controls..::..Panel
              System.Windows.Controls..::..WrapPanel
                C1.WPF.C1Schedule..::..AppointmentWrapPanel

See Also