[]
        
(Showing Draft Content)

C1.WPF.Schedule.CoverElementsPane

CoverElementsPane Class

Provides a surface for painting UI elements over the arbitrary layout.

Namespace: C1.WPF.Schedule
Assembly: C1.WPF.Schedule.4.6.2.dll
Syntax
[TemplatePart(Name = "PART_ElementsCanvas", Type = typeof(Canvas))]
public class CoverElementsPane : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IWeakEventListener
Remarks
<xref href="C1.WPF.Schedule.CoverElementsPane" data-throw-if-not-resolved="false"></xref> allows you to visually represent a set of UI elements 

relative to UI elements representing the underlying UI.

Constructors

Name Description
CoverElementsPane()

Initializes the new instance of the CoverElementsPane pane.

Fields

Name Description
CoverElementsMarginProperty

Identifies the CoverElementsMargin dependency property.

CoverElementsOverflowProperty

Identifies the CoverElementsOverflow attached property. Being set to true on a covered element that has the OrientationProperty property set, indicates that there are too many covering elements to be represented in the element.

CoverElementsSizeProperty

Identifies the CoverElementsSize dependency property.

IsDragDropDisabledProperty

Identifies the IsDragDropDisabled dependency property.

OrientationProperty

Identifies the Orientation attached property.

OwnerProperty

Identifies the Owner dependency property.

PaneNameProperty

Identifies the PaneName attached property. If you use several CoverElementsPane objects in a single template, you should specify this property on a covered element that has the OrientationProperty property set. Set this value to the value of the Name property of the corresponding CoverElementsPane object.

_isAboutToUnload

Determines whether the pane is about to be unloaded.

_lastStart

Might be used in derived classes during HostElementsList collection.

_needSort

Determines whether HostElementsList should be sorted after it is filled.

Properties

Name Description
ChunkBreakingAngle

Gets or sets a double value specifying the breaking angle for painted UI elements.

ContentKind

Gets or sets the type of content acceptable by the current instance of CoverElementsPane.

CoverElementsMargin

Gets or sets a double value, determining margins of the cover elements.

CoverElementsSize

Gets or sets a double value, determining the size of the cover elements. This is dependency property.

DataCoverElements

Gets a list of CoverElement objects that are drawn on this CoverElementPane.

ExtendOnOverflow

Gets or sets a bool value, specifying the CoverElementsPane
behavior in the case when covering elements do not fit into the available space. If False, the CoverElementsOverflowProperty will be set to True. This is default behavior. If True, the covered element will be extended in order to accommodate all covering elements.

IsDragDropDisabled

Gets or sets a bool value that indicates whether the CoverElementsPane doesn't allow resizing and drag operations. This is a dependency property.

Owner

Gets the object representing the CoverElementsPane object owner. This is a dependency property. Default value is null.

SizingType

Gets or sets the SizingType values specifying how CoverElementsPane determines UI elements size. The default value is SizingType.Fixed.

Methods

Name Description
GetCoverElement(object)

Creates new wrapper to represent cover element.

GetCoverElementsOverflow(FrameworkElement)

Gets the value of the CoverElementsOverflow attached property for a given framework element.

GetHosts()

Gets the list of the FrameworkElement elements, which are the root of visual tree to search covered elements.

GetLaneSize(SizingType, object, double, int)

Returns the size which should be used to draw cover element according to specified sizing type, available space and total lane count.

GetOrientation(FrameworkElement)

Gets the value of the Orientation attached property for a given framework element.

GetPaneName(FrameworkElement)

Gets the value of the PaneName attached property for a given framework element.

IsHostElementInternal(FrameworkElement)

Checks whether specified element is hosted in the same host as the current CoverElementsPane instance.

IsPaneElementInternal(FrameworkElement)

Checks whether specified element is covered by the current CoverElementsPane instance.

OnApplyTemplate()

Overrides the default behavior.

OnMouseDown(MouseButtonEventArgs)
OnMouseLeave(MouseEventArgs)
OnMouseLeftButtonDown(MouseButtonEventArgs)
OnMouseLeftButtonUp(MouseButtonEventArgs)

Overrides the default behavior.

OnMouseMove(MouseEventArgs)

Overrides the default behavior.

ReceiveWeakEvent(Type, object, EventArgs)

Receives events from the centralized event manager.

SetCoverElementsOverflow(FrameworkElement, bool)

Sets the value of the CoverElementsOverflow attached property for a given framework element.

SetOrientation(FrameworkElement, Orientation?)

Sets the value of the Orientation attached property for a given framework element.

SetPaneName(FrameworkElement, string)

Sets the value of the PaneName attached property for a given framework element.