[]
        
(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
Implements
IAutomationProperties
Namespace: C1.WPF.ListView
Assembly: C1.WPF.ListView.dll
Syntax
[StyleTypedProperty(Property = "SelectAllStyle", StyleTargetType = typeof(C1CheckBox))]
[TemplatePart(Name = "ScrollViewer", Type = typeof(C1ScrollViewer))]
[TemplatePart(Name = "SelectAll", Type = typeof(C1CheckBox))]
public class C1ListView : C1ItemsControl, INotifyPropertyChanged, IAutomationProperties
<StyleTypedProperty(Property:="SelectAllStyle", StyleTargetType:=GetType(C1CheckBox))>
<TemplatePart(Name:="ScrollViewer", Type:=GetType(C1ScrollViewer))>
<TemplatePart(Name:="SelectAll", Type:=GetType(C1CheckBox))>
Public Class C1ListView
    Inherits C1ItemsControl
    Implements INotifyPropertyChanged, IAutomationProperties
Remarks

This control supports data operations like sort, filter, grouping and on-demand loading.

Constructors

Name Description
C1ListView()

Initializes a new instance of the C1ListView class.

Fields

Name Description
CanSelectAllProperty

Identifies the CanSelectAll 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.

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.

SelectAllStyleProperty

Identifies the SelectAllStyle 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.

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.

AutomationEnabled
CanSelectAll

Gets or sets whether the final user can select all items in Multiple or Extended selection modes.

CursorBorderBrush

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

DataCollection

Gets the underlying collection.

HorizontalOffset

Gets how much the content is scrolled horizontally.

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.

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.

SelectAllStyle

Gets or sets a style used for Select All CheckBox.

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.

Selection

Gets the current selection.

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.

VerticalOffset

Gets how much the content is scrolled vertically.

VerticalScrollBarVisibility

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

VisibleRange

Gets the visible range.

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, bool)

Brings the specified index into view.

BringIntoView(Rect, bool, bool)

Brings the specified rectangle area into the view.

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()
OnCreateAutomationPeer()
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.

OnItemTemplateChanged(DataTemplate, DataTemplate)
OnItemsSourceChangedProtected(IEnumerable, IEnumerable)
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.

Select(C1OrderedSet)

Selects the specified indexes.

Select(IOrderedSet<int>)

Selects the specified indexes.

SelectAll()

Select all items.

UnselectAll()

Unselect all items and update checkbox.

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.