C# Class Microsoft.Phone.Controls.TransferMonitor

This class is a wrapper around BackgroundTransferRequest.
Inheritance: INotifyPropertyChanged
Mostra file Open project: Kinnara/WPToolkit Class Usage Examples

Public Methods

Method Description
RequestCancel ( ) : void

Requests cancellation of the transfer

TransferMonitor ( BackgroundTransferRequest request ) : System

This helper wraps around an instance of BackgroundTransferRequest

TransferMonitor ( BackgroundTransferRequest request, string name ) : System

This helper wraps around an instance of BackgroundTransferRequest

Protected Methods

Method Description
OnPropertyChanged ( string propertyName ) : void

Triggers the PropertyChanged event

RequestStateChanged ( object sender, BackgroundTransferEventArgs args ) : void

Updates the state of the helper based on the state of the request

Private Methods

Method Description
BytesToString ( long bytes ) : string
RequestProgressChanged ( object sender, BackgroundTransferEventArgs e ) : void

Updates the progress bar and status text when the progress updates

RequestStart ( ) : void
TransferringStatusText ( ) : string

Method Details

OnPropertyChanged() protected method

Triggers the PropertyChanged event
protected OnPropertyChanged ( string propertyName ) : void
propertyName string The name of the property that changed
return void

RequestCancel() public method

Requests cancellation of the transfer
public RequestCancel ( ) : void
return void

RequestStateChanged() protected method

Updates the state of the helper based on the state of the request
protected RequestStateChanged ( object sender, BackgroundTransferEventArgs args ) : void
sender object The request
args BackgroundTransferEventArgs The new state of the request
return void

TransferMonitor() public method

This helper wraps around an instance of BackgroundTransferRequest
public TransferMonitor ( BackgroundTransferRequest request ) : System
request BackgroundTransferRequest The background request to display
return System

TransferMonitor() public method

This helper wraps around an instance of BackgroundTransferRequest
public TransferMonitor ( BackgroundTransferRequest request, string name ) : System
request BackgroundTransferRequest The background request to display
name string The name to display
return System