[]
        
(Showing Draft Content)

C1.WPF.C1ListViewerPanel

C1ListViewerPanel Class

Virtualizing stack panel which supports preview templates in order to scroll quickly.

Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
public class C1ListViewerPanel : VirtualizingPanel, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, INotifyPropertyChanged

Constructors

Name Description
C1ListViewerPanel()

Initializes a new instance of the C1ListViewerPanel class.

Fields

Name Description
ZoomProperty

Identifies the Zoom dependency property.

Properties

Name Description
ActualZoom

Gets the actual zoom.

GeneratorForPanel

Gets the items container generator for this panel.

ItemHeight

Gets or sets the height of each item.

ItemWidth

Gets or sets the width of each item.

MeasureSize

Gets the size used to measure the items in the MeasureOverride method call.

Orientation

Gets or sets the orientation in which the list is displayed.

Owner

Gets the items control which is parent of this panel.

Padding

Gets the padding of the list of items.

ScrollViewer

Gets the scroll viewer associated with this panel.

ViewportGap

Gets a coeficient which will determine in each layout pass the size of the viewport. If zero is specified the size of the viewport will be equal to the scrollviewer viewport. If 0.5 is specified the size of the viewport will be enlarged to take up half screen more at both sides of the original viewport.

ViewportPreviewGap

Gets a coeficient which will determine in each layout pass the size of the viewport to render items in preview mode.

Zoom

Gets or sets the zoom applied in this panel.

Methods

Name Description
AfterItemMeasure(int, FrameworkElement)

Called after an item is measured in order to update scrolling structures.

AfterItemPrepared(C1ListViewerItem)

Called after the item was prepared to be shown in the panel.

ArrangeOverride(Size)

Provides the behavior for the Arrange pass of Silverlight layout. Classes can override this method to define their own Arrange pass behavior.

BeforeItemRecycled(C1ListViewerItem)

Called before the item is recycled.

CalculateExtentSize()

Calculates the extent size which determine the size of the panel.

ConvertFromLayoutCoordinates(double)

Converts a length from layout coordinates to absolute coordinates.

ConvertFromLayoutCoordinates(Size)

Converts a length from layout coordinates to absolute coordinates.

ConvertToAbsoluteCoordinates(double)

Converts a length from render coordinates to absolute coordinates in order to implement zoom panel easily.

ConvertToAbsoluteCoordinates(Point)

Converts a point from render coordinates to absolute coordinates.

ConvertToAbsoluteCoordinates(Rect)

Converts a rectangle from render coordinates to absolute coordinates.

ConvertToAbsoluteCoordinates(Size)

Converts a size from render coordinates to absolute coordinates.

ConvertToLayoutCoordinates(double)

Converts a length from absolute coordinates to layout coordinates.

ConvertToLayoutCoordinates(Point)

Converts a point from absolute coordinates to layout coordinates.

ConvertToLayoutCoordinates(Size)

Converts a size from absolute coordinates to layout coordinates.

ConvertToRenderCoordinates(double)

Converts a length from absolute coordinates to render coordinates in order to implement zoom panel easily.

ConvertToRenderCoordinates(Point)

Converts a point from absolute coordinates to render coordinates.

ConvertToRenderCoordinates(Rect)

Converts a rectangle from absolute coordinates to render coordinates.

ConvertToRenderCoordinates(Size)

Converts a size from absolute coordinates to render coordinates.

GetIndexAt(Point)

Gets the item index at the specified position.

GetItemPosition(int)

Gets the estimated position of an item in this panel.

GetItemsCountInViewport()

Gets the number of items in viewport.

GetViewport()
LoadMoreItemsAsync()
MeasureOverride(Size)

Provides the behavior for the Measure pass of Silverlight layout. Classes can override this method to define their own Measure pass behavior.

NeedsMoreItems()

Gets true when the viewport is close to the bottom.

OnClearChildren()

Called when the collection of child elements is cleared by the base Panel class.

OnItemsChanged(object, ItemsChangedEventArgs)

Called when the Items collection that is associated with the ItemsControl for this Panel changes.

RaisePropertyChanged(string)

Raises the property changed event.

Refresh()

Refreshes this instance by removing all the children and creating them again.

Events

Name Description
PropertyChanged

Occurs when a property value changes.

Extension Methods