C# Class SilverlightFX.Data.DataSource

Inheritance: System.Windows.Controls.ContentControl, IAsyncControl
Exibir arquivo Open project: nikhilk/silverlightfx

Private Properties

Property Type Description
LoadDataNow void
OnAsyncDataLoaded void
OnDataLoadTimerTick void
OnDataLoaded void
OnLoaded void
OnRefreshTimerTick void

Public Methods

Method Description
ClearData ( ) : void

Clears the currently loaded data.

LoadData ( ) : void

Notifies the data source to load data.

Protected Methods

Method Description
DataSource ( ) : System

Initializes an instance of a DataSource control.

LoadDataCore ( bool retrieveEstimatedTotalCount, bool &canceled, int &estimatedTotalCount ) : object

Performs the work needed to actually load the data from the underlying source represented by this data source.

OnLoaded ( ) : void

Performs initialization work once the control has been loaded.

RaiseError ( string message, Exception e ) : void

Raises the Error event.

Private Methods

Method Description
LoadDataNow ( ) : void
OnAsyncDataLoaded ( object sender, EventArgs e ) : void
OnDataLoadTimerTick ( object sender, EventArgs e ) : void
OnDataLoaded ( IEnumerable data, int estimatedTotalCount ) : void
OnLoaded ( object sender, EventArgs e ) : void
OnRefreshTimerTick ( object sender, EventArgs e ) : void

Method Details

ClearData() public method

Clears the currently loaded data.
public ClearData ( ) : void
return void

DataSource() protected method

Initializes an instance of a DataSource control.
protected DataSource ( ) : System
return System

LoadData() public method

Notifies the data source to load data.
public LoadData ( ) : void
return void

LoadDataCore() protected abstract method

Performs the work needed to actually load the data from the underlying source represented by this data source.
protected abstract LoadDataCore ( bool retrieveEstimatedTotalCount, bool &canceled, int &estimatedTotalCount ) : object
retrieveEstimatedTotalCount bool Whether to try and retrieve the estimated total count.
canceled bool Whether the loading has been canceled.
estimatedTotalCount int The estimate total count of items in the underlying source. -1 if not available.
return object

OnLoaded() protected method

Performs initialization work once the control has been loaded.
protected OnLoaded ( ) : void
return void

RaiseError() protected method

Raises the Error event.
protected RaiseError ( string message, Exception e ) : void
message string The error message.
e System.Exception Any exception associated with the error.
return void