C# Class Microsoft.Phone.Controls.MultiselectList

Inheritance: System.Windows.Controls.ItemsControl
Datei anzeigen Open project: Kinnara/WPToolkit Class Usage Examples

Public Properties

Property Type Description
IsInSelectionModeProperty System.Windows.DependencyProperty
ItemContainerStyleProperty System.Windows.DependencyProperty
ItemInfoTemplateProperty System.Windows.DependencyProperty

Public Methods

Method Description
MultiselectList ( ) : System

Initializes a new instance of the MultiselectList class.

Protected Methods

Method Description
GetContainerForItemOverride ( ) : DependencyObject

Overrides the DependencyObject used by this ItemsControl to be a MultiselectItem.

IsItemItsOwnContainerOverride ( object item ) : bool

Acknowledges an item as being of the same type as its container if it is a MultiselectItem.

OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void

Unselects any selected item which was removed from the source.

PrepareContainerForItemOverride ( DependencyObject element, object item ) : void

Resets new or reused item containers appropiately.

Private Methods

Method Description
OnIsSelectionEnabledPropertyChanged ( DependencyObject obj, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Opens or closes the selection mode accordingly. If closing, it unselects any selected item. Finally, it fires up an IsSelectionEnabledChanged event.

OnSelectionChanged ( IList removedItems, IList addedItems ) : void

Toogles the selection mode based on the count of selected items, and fires a SelectionChanged event.

TriggerSelection ( SelectionEnabledState state ) : void

Triggers the visual state changes and visual transitions to open or close the list to/from selection mode.

Method Details

GetContainerForItemOverride() protected method

Overrides the DependencyObject used by this ItemsControl to be a MultiselectItem.
protected GetContainerForItemOverride ( ) : DependencyObject
return System.Windows.DependencyObject

IsItemItsOwnContainerOverride() protected method

Acknowledges an item as being of the same type as its container if it is a MultiselectItem.
protected IsItemItsOwnContainerOverride ( object item ) : bool
item object An item owned by the ItemsControl.
return bool

MultiselectList() public method

Initializes a new instance of the MultiselectList class.
public MultiselectList ( ) : System
return System

OnItemsChanged() protected method

Unselects any selected item which was removed from the source.
protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e System.Collections.Specialized.NotifyCollectionChangedEventArgs The event information.
return void

PrepareContainerForItemOverride() protected method

Resets new or reused item containers appropiately.
protected PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject
item object
return void

Property Details

IsInSelectionModeProperty public_oe static_oe property

Identifies the IsSelectionEnabled dependency property.
public static DependencyProperty,System.Windows IsInSelectionModeProperty
return System.Windows.DependencyProperty

ItemContainerStyleProperty public_oe static_oe property

Identifies the ItemContainerStyle dependency property.
public static DependencyProperty,System.Windows ItemContainerStyleProperty
return System.Windows.DependencyProperty

ItemInfoTemplateProperty public_oe static_oe property

Identifies the ItemInfoTemplate dependency property.
public static DependencyProperty,System.Windows ItemInfoTemplateProperty
return System.Windows.DependencyProperty