Page.OnNavigatingFrom(NavigatingFromEventArgs) 方法

定义

在派生类中重写时,允许应用程序开发人员在离开页面之前立即自定义行为。

protected:
 virtual void OnNavigatingFrom(Microsoft::Maui::Controls::NavigatingFromEventArgs ^ args);
protected virtual void OnNavigatingFrom (Microsoft.Maui.Controls.NavigatingFromEventArgs args);
abstract member OnNavigatingFrom : Microsoft.Maui.Controls.NavigatingFromEventArgs -> unit
override this.OnNavigatingFrom : Microsoft.Maui.Controls.NavigatingFromEventArgs -> unit
Protected Overridable Sub OnNavigatingFrom (args As NavigatingFromEventArgs)

参数

args
NavigatingFromEventArgs

事件自变量。

适用于