22 lines
630 B
C#
22 lines
630 B
C#
|
|
|
|
|
|
namespace WPFluent.Abstractions;
|
|
|
|
/// <summary>
|
|
/// Notifies class about being navigated.
|
|
/// </summary>
|
|
public interface INavigationAware
|
|
{
|
|
/// <summary>
|
|
/// Asynchronously handles the event that is fired before the component is navigated from.
|
|
/// </summary>
|
|
/// <returns>A task that represents the asynchronous operation.</returns>
|
|
Task OnNavigatedFromAsync();
|
|
|
|
/// <summary>
|
|
/// Asynchronously handles the event that is fired after the component is navigated to.
|
|
/// </summary>
|
|
/// <returns>A task that represents the asynchronous operation.</returns>
|
|
Task OnNavigatedToAsync();
|
|
} |