Compartilhar via


DomainDataSource.LoadingData Event

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Occurs when a data loading operation is started.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.DomainServices (in System.Windows.Controls.DomainServices.dll)

Syntax

'Declaration
Public Event LoadingData As EventHandler(Of LoadingDataEventArgs)
'Usage
Dim instance As DomainDataSource
Dim handler As EventHandler(Of LoadingDataEventArgs)

AddHandler instance.LoadingData, handler
public event EventHandler<LoadingDataEventArgs> LoadingData
public:
 event EventHandler<LoadingDataEventArgs^>^ LoadingData {
    void add (EventHandler<LoadingDataEventArgs^>^ value);
    void remove (EventHandler<LoadingDataEventArgs^>^ value);
}
member LoadingData : IEvent<EventHandler<LoadingDataEventArgs>,
    LoadingDataEventArgs>
JScript supports the use of events, but not the declaration of new ones.

Remarks

This event is raised from Load and enables a handler to cancel the data loading before it starts. When a handler sets Cancel to true, the data loading will be aborted and a subsequent LoadedData event will not be raised. This differs slightly from canceling a data loading by way of CancelLoad.

See Also

Reference

DomainDataSource Class

System.Windows.Controls Namespace