优化更新代码,添加界面功能并整合
This commit is contained in:
22
WPFluent/Controls/NavigationView/INavigationAware.cs
Normal file
22
WPFluent/Controls/NavigationView/INavigationAware.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
|
||||
|
||||
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user