| File: System\Windows\Navigation\ReturnEventArgs.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj (PresentationFramework) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // // Description: // ReturnEventArgs is a generic flavor of EventArgs, // that enable setting, getting a typed value that's // passed between Pagefunctions. // namespace System.Windows.Navigation { ///<summary> /// ReturnEventArgs is a generic flavor of EventArgs, /// that enable setting, getting a typed value that's /// passed between Pagefunctions. ///</summary> public class ReturnEventArgs<T> : System.EventArgs { //------------------------------------------------------ // // Constructors // //------------------------------------------------------ #region Constructors ///<summary> /// ReturnEventArgs constructor ///</summary> public ReturnEventArgs() { } ///<summary> /// ReturnEventArgs constructor. Supplied value is assigned to Result value ///</summary> ///<param name="result">Assigned to Result property</param> public ReturnEventArgs( T result) { _result = result; } #endregion Constructors //------------------------------------------------------ // // Public Properties // //------------------------------------------------------ #region Public Properties ///<summary> /// The Result property indicates the result that a PageFunction is /// returning to it's caller, at the end of a Structured Navigation. ///</summary> public T Result { get { return _result; } set { _result = value; } } #endregion Public Properties //------------------------------------------------------ // // Private Fields // //------------------------------------------------------ #region Private Fields private T _result; #endregion Private Fields } }