[]
        
(Showing Draft Content)

C1.WPF.ListView.C1ListView

C1ListView Class

List of items which can be used with heavy templates and preview template to scroll quickly.

Inheritance
C1ListView
Namespace: C1.WPF.ListView
Assembly: C1.WPF.ListView.dll
Syntax
[StyleTypedProperty(Property = "CaptionStyle", StyleTargetType = typeof(C1CheckBox))]
[TemplatePart(Name = "ScrollViewer", Type = typeof(C1ScrollViewer))]
[TemplatePart(Name = "Caption", Type = typeof(C1CheckBox))]
[TemplateVisualState(Name = "ShowDisableCaption", GroupName = "ShowCaptionStates")]
[TemplateVisualState(Name = "ShowEnableCaption", GroupName = "ShowCaptionStates")]
[TemplateVisualState(Name = "HideCaption", GroupName = "ShowCaptionStates")]
public class C1ListView : C1ItemsControl, INotifyPropertyChanged

Constructors

Name Description
C1ListView()

Initializes a new instance of the C1ListView class.

Fields

Name Description
CaptionStyleProperty

Identifies the CaptionStyle dependency property.

CursorBorderBrushProperty

Identifies the CursorBorderBrush dependency property.

HorizontalScrollBarVisibilityProperty

Identifies the HorizontalScrollBarVisibility dependency property.

IsSwipeEnabledProperty

Identifies the IsSwipeEnabled dependency property.

ItemHeightProperty

Identifies the ItemHeight dependency property.

ItemWidthProperty

Identifies the ItemWidth dependency property.

ItemsSourceProperty

Identifies the ItemsSource dependency property.

MaxZoomProperty

Identifies the MaxZoom dependency property.

MinZoomProperty

Identifies the MinZoom dependency property.

MouseOverBrushProperty

Identifies the MouseOverBrush dependency property.

OrientationProperty

Identifies the Orientation dependency property.

PreviewItemTemplateProperty

Identifies the PreviewItemTemplate dependency property.

RefreshWhileScrollingProperty

Identifies the RefreshWhileScrolling dependency property.

SelectAllCaptionProperty

Identifies the SelectAllCaption dependency property.

SelectedBackgroundProperty

Identifies the SelectedBackground dependency property.

SelectedIndexProperty

Identifies the SelectedIndex dependency property.

SelectedItemProperty

Identifies the SelectedItem dependency property.

SelectedItemsProperty

Identifies the SelectedItems dependency property.

SelectionModeProperty

Identifies the SelectionMode dependency property.

ShowCheckBoxesProperty

Identifies the ShowCheckBoxes dependency property.

ShowSelectAllProperty

Identifies the ShowSelectAll dependency property.

UnSelectAllCaptionProperty

Identifies the UnSelectAllCaption dependency property.

VerticalScrollBarVisibilityProperty

Identifies the VerticalScrollBarVisibility dependency property.

ViewportGapProperty

Identifies the ViewportGap dependency property.

ViewportPreviewGapProperty

Identifies the ViewportPreviewGap dependency property.

ZoomModeProperty

Identifies the ZoomMode dependency property.

ZoomProperty

Identifies the Zoom dependency property.

Properties

Name Description
ActualMaxZoom

Gets the actual maximum zoom.

ActualMinZoom

Gets the actual minimum zoom.

CanSelectAll

Gets or sets value determining whether control should allow to select all items in Multiple or Extended selection modes.

CaptionStyle

Gets or sets a style used for caption of Select All CheckBox.

CursorBorderBrush

Gets or sets the Brush used to highlight the border of the item used as cursor.

DataCollection

Gets the underlying collection.

HorizontalScrollBarVisibility

Gets or sets a value that indicates whether a horizontal ScrollBar should be displayed.

IsScrolling

Gets a value indicating whether the list is scrolling.

IsSwipeEnabled

Gets or sets a value that indicates whether the view supports discrete input processing for a swipe interaction.

IsZooming

Gets a value indicating whether this list is zooming.

ItemHeight

Gets or sets the height of each item.

ItemWidth

Gets or sets the width of each item.

Items

Gets the collection of list view items.

ItemsSource

Gets or sets the collection of items.

MaxZoom

Gets or sets the maximum zoom available.

MinZoom

Gets or sets the minimum zoom available.

MouseOverBrush

Gets or sets the Brush used to highlight the control when it has the mouse over.

Orientation

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

PreviewItemTemplate

Gets or sets the template used for previewing an item.

RefreshWhileScrolling

Gets or sets a value indicating whether the viewport must be refreshed while the scroll is running.

ScrollViewer

Gets the scroll viewer template part belonging to this items control.

SelectAllCaption

Gets or sets the caption for checkbox when execute SelectAll.

SelectedBackground

Gets or sets the Brush used to highlight the control when it is selected.

SelectedIndex

Gets or sets the current selected index or returns -1 if there is no selection, or the selection doesn't belong to the Items collection.

SelectedItem

Gets or set the item which is selected.

SelectedItems

Gets or set the list of items which are selected.

SelectionMode

Gets or sets the selection behavior. The default is single selection.

ShowCheckBoxes

Determines whether control should show checkboxes for each item.

ShowSelectAll

Determines whether control should show 'Select All' checkbox.

UnSelectAllCaption

Gets or sets the caption for checkbox when execute UnSelectAll.

VerticalScrollBarVisibility

Gets or sets a value that indicates whether a vertical ScrollBar should be displayed.

ViewportGap

Gets or sets a coefficient 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 C1.WPF.Core.C1ScrollViewer 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 or sets a coefficient which will determine in each layout pass the size of the viewport to render items in preview mode.

Zoom

Gets or set the zoom applied to this list.

ZoomMode

Gets or sets whether the zoom is enabled or disabled.

Methods

Name Description
BringIndexIntoView(int, Rect?, bool, Action)

Brings the specified index into view.

BringIntoView(Rect, bool, Action)

Brings the specified rectangle area into the view.

ChangeVisualStateShowCaption(bool)

Updates the current visual state of the ShowCaption visual state group to match the object's properties.

ClearSelection()

Clears the selection.

Dispose(bool)
GetPanel()

Gets a ListViewPanel object.

InitializePanel()

Initializes the panel the first time it is loaded.

IsKeyboardNavigation(Key)

Checks whether control uses specified key for navigation.

OnApplyTemplate()
OnGotFocus(RoutedEventArgs)

OnGotFocus

OnItemHolding(object, C1TappedEventArgs)

Called when one of the items receive the Hold event.

OnItemTapped(ListViewItemView, C1TappedEventArgs)

Called when one of the items is tapped.

OnLostFocus(RoutedEventArgs)

OnLostFocus

OnPreviewKeyDown(KeyEventArgs)

OnPreviewKeyDown

OnPreviewKeyUp(KeyEventArgs)
OnPropertyChanged(string)

Raises the property changed event.

OnPropertyChanged(DependencyPropertyChangedEventArgs)

OnPropertyChanged

OnSelectionChanged(object, SelectionChangedEventArgs<int>)

Called when the selection changed.

OnSelectionChanging(object, SelectionChangedEventArgs<int>)

Called when the selection changing.

Refresh(int)

Refreshes the specified item.

ScrollToHorizontalOffset(double)

Scrolls the content to the specified horizontal offset position.

ScrollToVerticalOffset(double)

Scrolls the content to the specified vertical offset position.

SelectAll()

Select all items.

UnselectAll()

Unselect all items and update caption.

Events

Name Description
HorizontalOffsetChanged

Occurs when horizontal offset changed.

ItemContainerLoaded

Occurs after an item container was loaded.

ItemContainerUnloading

Occurs before an item container was unloaded.

ItemHolding

Occurs when an item held.

ItemTapped

Occurs when an item is tapped.

ItemTapping

Occurs when an item is being tapped.

PropertyChanged

Occurs when a property value changes.

SelectionChanged

Occurs when the selection changed.

SelectionChanging

Occurs when the selection is changing.

VerticalOffsetChanged

Occurs when the vertical offset changed.

ZoomChanged

Occurs when the zoom changed.