Callback expectations
class SampleViewModel : IExpectViewLoadedCallback
{
void IExpectViewLoadedCallback.OnViewLoaded()
{
//code to handle the View Loaded event
}
}class ChildViewModel : AbstractViewModel, IExpectViewClosingCallback
{
void IExpectViewClosingCallback.OnViewClosing( CancelEventArgs e )
{
//blocks the view closing process
e.Cancel = true;
}
}Last updated