Facebook Client

Picker Class

namespace Client.Controls
public classPicker
Overview

Displays a list of selectable items with optional multi-selection.

Supported in:
  • Windows Store
  • Windows Phone 8
Summary
Constructors
public .ctor()
Initializes a new instance of the Picker class.
Properties
Brush public GroupHeaderBackground
Gets or sets the background brush used for the group headers.
Brush public GroupHeaderForeground
Gets or sets the foreground brush used for the group headers.
ObservableCollection<T> public Items
Gets the list of currently selected items for the Picker control.
T public SelectedItem
Gets the currently selected item for the Picker control.
ObservableCollection<T> public SelectedItems
Gets the list of currently selected items for the Picker control.
PickerSelectionMode public SelectionMode
Gets or sets the selection behavior of the control.
Events
public DataItemRetrieved
public LoadCompleted
public LoadFailed
public SelectionChanged
Methods
void protected ClearSelection()
IList protected GetData(IEnumerable<T> items)
IEnumerable<T> protected GetDesignTimeData()
Task protected LoadData()
void protected OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
bool protected OnDataItemRetrieved(DataItemRetrievedEventArgs<T> args, Func<DataItemRetrievedEventArgs<T>, bool> cancelInvocation)
void protected OnLoadCompleted(DataReadyEventArgs<T> args)
void protected OnLoadFailed(LoadFailedEventArgs args)
void protected OnSelectionChanged(object sender, SelectionChangedEventArgs e)
Task protected RefreshData()
void protected SetDataSource(IEnumerable<T> items)
Constructors
public .ctor()
Initializes a new instance of the Picker class.
Properties
public GroupHeaderBackground
Gets or sets the background brush used for the group headers.
Supported only in:
  • Windows Store
public GroupHeaderForeground
Gets or sets the foreground brush used for the group headers.
Supported only in:
  • Windows Store
public Items
Gets the list of currently selected items for the Picker control.
public SelectedItem
Gets the currently selected item for the Picker control.
public SelectedItems
Gets the list of currently selected items for the Picker control.
public SelectionMode
Gets or sets the selection behavior of the control.
events
public DataItemRetrieved
public LoadCompleted
public LoadFailed
public SelectionChanged
Methods
protected void ClearSelection()
protected IList GetData(IEnumerable<T> items)
Parameters
items
protected IEnumerable<T> GetDesignTimeData()
protected Task LoadData()
protected void OnApplyTemplate()
Invoked whenever application code or internal processes (such as a rebuilding layout pass) call ApplyTemplate. In simplest terms, this means the method is called just before a UI element displays in your app. Override this method to influence the default post-template logic of a class.
protected bool OnDataItemRetrieved(DataItemRetrievedEventArgs<T> args, Func<DataItemRetrievedEventArgs<T>, bool> cancelInvocation)
Parameters
args
cancelInvocation
protected void OnLoadCompleted(DataReadyEventArgs<T> args)
Parameters
args
protected void OnLoadFailed(LoadFailedEventArgs args)
Parameters
args
protected void OnSelectionChanged(object sender, SelectionChangedEventArgs e)
Parameters
sender
e
protected Task RefreshData()
protected void SetDataSource(IEnumerable<T> items)
Parameters
items