C# Class PhoneToolkitSample.Samples.BackgroundTransferQueue

Inheritance: PhoneApplicationPage
Mostrar archivo Open project: Kinnara/WPToolkit

Public Methods

Method Description
BackgroundTransferQueue ( ) : System
SubscribeMonitor ( TransferMonitor monitor ) : void

Protected Methods

Method Description
OnBackKeyPress ( CancelEventArgs e ) : void

Private Methods

Method 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 method

public BackgroundTransferQueue ( ) : System
return System

OnBackKeyPress() protected method

protected OnBackKeyPress ( CancelEventArgs e ) : void
e CancelEventArgs
return void

SubscribeMonitor() public method

public SubscribeMonitor ( TransferMonitor monitor ) : void
monitor Microsoft.Phone.Controls.TransferMonitor
return void