C# 클래스 PhoneToolkitSample.Samples.BackgroundTransferQueue

상속: PhoneApplicationPage
파일 보기 프로젝트 열기: Kinnara/WPToolkit

공개 메소드들

메소드 설명
BackgroundTransferQueue ( ) : System
SubscribeMonitor ( TransferMonitor monitor ) : void

보호된 메소드들

메소드 설명
OnBackKeyPress ( CancelEventArgs e ) : void

비공개 메소드들

메소드 설명
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

메소드 상세

BackgroundTransferQueue() 공개 메소드

public BackgroundTransferQueue ( ) : System
리턴 System

OnBackKeyPress() 보호된 메소드

protected OnBackKeyPress ( CancelEventArgs e ) : void
e CancelEventArgs
리턴 void

SubscribeMonitor() 공개 메소드

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