C# Class Microsoft.Phone.Controls.ListPicker

Inheritance: System.Windows.Controls.ItemsControl
Show file Open project: nokiadatagathering/WP7-Official Class Usage Examples

Public Properties

Property Type Description
ExpansionModeProperty System.Windows.DependencyProperty
FullModeHeaderProperty System.Windows.DependencyProperty
FullModeItemTemplateProperty System.Windows.DependencyProperty
HeaderProperty System.Windows.DependencyProperty
HeaderTemplateProperty System.Windows.DependencyProperty
ItemCountThresholdProperty System.Windows.DependencyProperty
ListPickerModeProperty System.Windows.DependencyProperty
PickerPageUriProperty System.Windows.DependencyProperty
SelectedIndexProperty System.Windows.DependencyProperty
SelectedItemProperty System.Windows.DependencyProperty
SelectedItemsProperty System.Windows.DependencyProperty
SelectionModeProperty System.Windows.DependencyProperty
SummaryForSelectedItemsDelegateProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
ClosePickerPage void
IsValidManipulation bool
OnContainerTap void
OnFrameManipulationStarted void
OnFrameNavigated void
OnFrameNavigationStoppedOrFailed void
OnIsEnabledChanged void
OnIsEnabledChanged void
OnIsHighlightedChanged void
OnIsHighlightedChanged void
OnItemCountThresholdChanged void
OnItemCountThresholdChanged void
OnItemsPresenterHostParentSizeChanged void
OnListPickerItemSizeChanged void
OnListPickerModeChanged void
OnListPickerModeChanged void
OnLoaded void
OnPageBackKeyPress void
OnSelectedIndexChanged void
OnSelectedIndexChanged void
OnSelectedItemChanged void
OnSelectedItemChanged void
OnSelectedItemsChanged void
OnSelectedItemsChanged void
OnSelectionModeChanged void
OnSelectionModeChanged void
OnShadowOrFullModeItemTemplateChanged void
OnShadowOrFullModeItemTemplateChanged void
OnUnloaded void
OpenPickerPage void
SetContentHeight void
SizeForAppropriateView void
SizeForExpandedMode void
SizeForNormalMode void
UpdateSummary void
UpdateVisualStates void

Public Methods

Method Description
ListPicker ( ) : System

Initializes a new instance of the ListPicker class.

OnApplyTemplate ( ) : void

Builds the visual tree for the control when a new template is applied.

Open ( ) : bool

Opens the picker for selection either into Expanded or Full mode depending on the picker's state.

Protected Methods

Method Description
ClearContainerForItemOverride ( DependencyObject element, object item ) : void

Undoes the effects of the PrepareContainerForItemOverride method.

GetContainerForItemOverride ( ) : DependencyObject

Creates or identifies the element used to display a specified item.

IsItemItsOwnContainerOverride ( object item ) : bool

Determines if the specified item is (or is eligible to be) its own item container.

OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void

Provides handling for the ItemContainerGenerator.ItemsChanged event.

OnManipulationCompleted ( System.Windows.Input.ManipulationCompletedEventArgs e ) : void

Called when the ManipulationCompleted event occurs.

OnManipulationDelta ( System.Windows.Input.ManipulationDeltaEventArgs e ) : void

Called when the ManipulationDelta event occurs.

OnManipulationStarted ( System.Windows.Input.ManipulationStartedEventArgs e ) : void

Called when the ManipulationStarted event occurs.

OnTap ( System e ) : void

Handles the tap event.

PrepareContainerForItemOverride ( DependencyObject element, object item ) : void

Prepares the specified element to display the specified item.

Private Methods

Method Description
ClosePickerPage ( ) : void
IsValidManipulation ( object OriginalSource, Point p ) : bool
OnContainerTap ( object sender, System e ) : void
OnFrameManipulationStarted ( object sender, System.Windows.Input.ManipulationStartedEventArgs e ) : void
OnFrameNavigated ( object sender, System.Windows.Navigation.NavigationEventArgs e ) : void
OnFrameNavigationStoppedOrFailed ( object sender, EventArgs e ) : void
OnIsEnabledChanged ( ) : void

Enabled property changed

OnIsEnabledChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Enabled property changed

OnIsHighlightedChanged ( ) : void

Highlight property changed

OnIsHighlightedChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Highlight property changed

OnItemCountThresholdChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnItemCountThresholdChanged ( int newValue ) : void
OnItemsPresenterHostParentSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
OnListPickerItemSizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
OnListPickerModeChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnListPickerModeChanged ( ListPickerMode oldValue, ListPickerMode newValue ) : void
OnLoaded ( object sender, RoutedEventArgs e ) : void
OnPageBackKeyPress ( object sender, CancelEventArgs e ) : void
OnSelectedIndexChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSelectedIndexChanged ( int oldValue, int newValue ) : void
OnSelectedItemChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSelectedItemChanged ( object oldValue, object newValue ) : void
OnSelectedItemsChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSelectedItemsChanged ( IList oldValue, IList newValue ) : void
OnSelectionModeChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnSelectionModeChanged ( SelectionMode newValue ) : void
OnShadowOrFullModeItemTemplateChanged ( ) : void
OnShadowOrFullModeItemTemplateChanged ( DependencyObject o, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnUnloaded ( object sender, RoutedEventArgs e ) : void
OpenPickerPage ( ) : void
SetContentHeight ( double height ) : void
SizeForAppropriateView ( bool animate ) : void
SizeForExpandedMode ( ) : void
SizeForNormalMode ( bool animate ) : void
UpdateSummary ( IList newValue ) : void
UpdateVisualStates ( bool useTransitions ) : void

Method Details

ClearContainerForItemOverride() protected method

Undoes the effects of the PrepareContainerForItemOverride method.
protected ClearContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject The container element.
item object The item.
return void

GetContainerForItemOverride() protected method

Creates or identifies the element used to display a specified item.
protected GetContainerForItemOverride ( ) : DependencyObject
return System.Windows.DependencyObject

IsItemItsOwnContainerOverride() protected method

Determines if the specified item is (or is eligible to be) its own item container.
protected IsItemItsOwnContainerOverride ( object item ) : bool
item object The specified item.
return bool

ListPicker() public method

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

OnApplyTemplate() public method

Builds the visual tree for the control when a new template is applied.
public OnApplyTemplate ( ) : void
return void

OnItemsChanged() protected method

Provides handling for the ItemContainerGenerator.ItemsChanged event.
protected OnItemsChanged ( NotifyCollectionChangedEventArgs e ) : void
e System.Collections.Specialized.NotifyCollectionChangedEventArgs A NotifyCollectionChangedEventArgs that contains the event data.
return void

OnManipulationCompleted() protected method

Called when the ManipulationCompleted event occurs.
protected OnManipulationCompleted ( System.Windows.Input.ManipulationCompletedEventArgs e ) : void
e System.Windows.Input.ManipulationCompletedEventArgs Event data for the event.
return void

OnManipulationDelta() protected method

Called when the ManipulationDelta event occurs.
protected OnManipulationDelta ( System.Windows.Input.ManipulationDeltaEventArgs e ) : void
e System.Windows.Input.ManipulationDeltaEventArgs Event data for the event.
return void

OnManipulationStarted() protected method

Called when the ManipulationStarted event occurs.
protected OnManipulationStarted ( System.Windows.Input.ManipulationStartedEventArgs e ) : void
e System.Windows.Input.ManipulationStartedEventArgs Event data for the event.
return void

OnTap() protected method

Handles the tap event.
protected OnTap ( System e ) : void
e System Event args
return void

Open() public method

Opens the picker for selection either into Expanded or Full mode depending on the picker's state.
public Open ( ) : bool
return bool

PrepareContainerForItemOverride() protected method

Prepares the specified element to display the specified item.
protected PrepareContainerForItemOverride ( DependencyObject element, object item ) : void
element System.Windows.DependencyObject The element used to display the specified item.
item object The item to display.
return void

Property Details

ExpansionModeProperty public static property

Identifies the ExpansionMode DependencyProperty.
public static DependencyProperty,System.Windows ExpansionModeProperty
return System.Windows.DependencyProperty

FullModeHeaderProperty public static property

Identifies the FullModeHeader DependencyProperty.
public static DependencyProperty,System.Windows FullModeHeaderProperty
return System.Windows.DependencyProperty

FullModeItemTemplateProperty public static property

Identifies the FullModeItemTemplate DependencyProperty.
public static DependencyProperty,System.Windows FullModeItemTemplateProperty
return System.Windows.DependencyProperty

HeaderProperty public static property

Identifies the Header DependencyProperty.
public static DependencyProperty,System.Windows HeaderProperty
return System.Windows.DependencyProperty

HeaderTemplateProperty public static property

Identifies the HeaderTemplate DependencyProperty.
public static DependencyProperty,System.Windows HeaderTemplateProperty
return System.Windows.DependencyProperty

ItemCountThresholdProperty public static property

Identifies the ItemCountThreshold DependencyProperty.
public static DependencyProperty,System.Windows ItemCountThresholdProperty
return System.Windows.DependencyProperty

ListPickerModeProperty public static property

Identifies the ListPickerMode DependencyProperty.
public static DependencyProperty,System.Windows ListPickerModeProperty
return System.Windows.DependencyProperty

PickerPageUriProperty public static property

Identifies the PickerPageUri DependencyProperty.
public static DependencyProperty,System.Windows PickerPageUriProperty
return System.Windows.DependencyProperty

SelectedIndexProperty public static property

Identifies the SelectedIndex DependencyProperty.
public static DependencyProperty,System.Windows SelectedIndexProperty
return System.Windows.DependencyProperty

SelectedItemProperty public static property

Identifies the SelectedItem DependencyProperty.
public static DependencyProperty,System.Windows SelectedItemProperty
return System.Windows.DependencyProperty

SelectedItemsProperty public static property

Identifies the SelectedItems DependencyProperty.
public static DependencyProperty,System.Windows SelectedItemsProperty
return System.Windows.DependencyProperty

SelectionModeProperty public static property

Identifies the SelectionMode DependencyProperty.
public static DependencyProperty,System.Windows SelectionModeProperty
return System.Windows.DependencyProperty

SummaryForSelectedItemsDelegateProperty public static property

Identifies the SummaryForSelectedItemsDelegate DependencyProperty.
public static DependencyProperty,System.Windows SummaryForSelectedItemsDelegateProperty
return System.Windows.DependencyProperty