public interface IViewEvents : INotifyPropertyChanged
Public Interface IViewEvents
Inherits INotifyPropertyChanged
The interface must be implemented in the event class corresponding to the view (IViewEvents implemented in ViewEvents of Aliquo.Windows).
In the ViewModels of the view, the propagations corresponding to the events must be carried out using the Raise method.
Example of propagation in TableViewModel.vb of Aliquo.Windows.Views.Tables:
...
Me.Window.View.Raise(NameOf(IViewEvents.SelectionChanged), EventArgs.Empty)
...
All view event interfaces must inherit from the IViewEvents interface.
Closed | Event that occurs when the view is closed. |
Closing | Event that occurs before closing the view, allowing you to cancel closing the view. |
DataDeleted | Event that occurs after deleting. |
DataDeleting | Event that occurs before deleting, allowing the deletion to be canceled. |
DataUpdated | Event that occurs after saving. |
DataUpdating | Event that occurs before saving, allowing you to cancel. |
Loaded | Event that occurs when the view has loaded. |
SelectionChanged | Event that occurs when the selection has been changed. |