共用方式為


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

事件引數。

適用於