IListView

Namespace: WellFired.Guacamole

Description

IListView is the interface used on Views of type List. Currently, this is only used for layouting code.

Properties

:ref:`ObservableCollection<classwellfired_guacamole_data_collection_observablecollection>`< INotifyPropertyChanged > SelectedItems { get; set; }
Action< INotifyPropertyChanged, SelectedItemChangedEventArgs > OnItemSelected { get; set; }
int Spacing { get; set; }
OrientationOptions Orientation { get; set; }
float AvailableSpace { get; set; }
INotifyPropertyChanged SelectedItem { get; set; }
int TotalContentSize { get; set; }
float InitialOffset { get; set; }
int ScrollBarSize { get; set; }
bool ShouldShowScrollBar { get; set; }
bool CanScroll { get; set; }
float ScrollOffset { get; set; }
bool CanMultiSelect { get; set; }

Public Methods

void ScrollTo ( object item )
int GetEntrySizeFor ( object data )

Breakdown

  • int TotalContentSize { get; set; }
  • :ref:`ObservableCollection<classwellfired_guacamole_data_collection_observablecollection>`< INotifyPropertyChanged > SelectedItems { get; set; }

    Description

    Adding items to this collection will select these items. When SelectedItem is set, every elements of the collection are unselected and the collection resetted event is sent.

  • int Spacing { get; set; }
  • OrientationOptions Orientation { get; set; }
  • float AvailableSpace { get; set; }
  • INotifyPropertyChanged SelectedItem { get; set; }

    Description

    Setting this value select an item in the list view. It also unselects every other selected items, even if SelectedItem is set to null.

  • float InitialOffset { get; set; }
  • int ScrollBarSize { get; set; }
  • bool ShouldShowScrollBar { get; set; }
  • bool CanScroll { get; set; }
  • float ScrollOffset { get; set; }
  • bool CanMultiSelect { get; set; }

    Description

    If true then several items can be selected by pressing Ctrl or Command.

  • void ScrollTo ( object item )

    Description

    ScrollTo a specific item.

    Parameters

    item The item you wish to scroll to. This should be the items bindableObject, not the visual element.
  • int GetEntrySizeFor ( object data )

    Description

    Returns the entry size for the passed BindableObject

    Parameters

    data The object that is bound to a cell