C# Class PhoneToolkitSample.Samples.BackgroundTransferQueue

Inheritance: PhoneApplicationPage
Afficher le fichier Open project: Kinnara/WPToolkit

Méthodes publiques

Méthode Description
BackgroundTransferQueue ( ) : System
SubscribeMonitor ( TransferMonitor monitor ) : void

Méthodes protégées

Méthode Description
OnBackKeyPress ( CancelEventArgs e ) : void

Private Methods

Méthode Description
ClearApplicationBar ( ) : void

Resets the application bar by removing all items

ClearCompletedItems ( object sender, EventArgs e ) : void

This clears all completed transfers from the transfer queue

OnAddButtonClick ( object sender, EventArgs e ) : void

This function is for demo purposes. It adds three files to the background download queue and displays them in the multi-select list.

OnCancelButtonClick ( object sender, EventArgs e ) : void
OnSelectButtonClick ( object sender, EventArgs e ) : void
ReloadApplicationBar ( ) : void

This clears the application bar and loads it with the correct buttons (depends on the selection mode of the multi-select list)

TransferCanceled ( object sender, BackgroundTransferEventArgs transferEventArgs ) : void

Automatically removes a monitor from the queue when it is canceled.

TransfersList_OnIsSelectionEnabledChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void
TransfersList_OnSelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void

Called when the number of items in the multi-select list changes

UnsubscribeMonitor ( TransferMonitor monitor ) : void
UpdateCancelButton ( ) : void

Updates the enabled state of the cancel button in the application bar

Method Details

BackgroundTransferQueue() public méthode

public BackgroundTransferQueue ( ) : System
Résultat System

OnBackKeyPress() protected méthode

protected OnBackKeyPress ( CancelEventArgs e ) : void
e CancelEventArgs
Résultat void

SubscribeMonitor() public méthode

public SubscribeMonitor ( TransferMonitor monitor ) : void
monitor Microsoft.Phone.Controls.TransferMonitor
Résultat void