// Copyright (c) Arlo Godfrey. All Rights Reserved. // Licensed under the GNU Lesser General Public License, Version 3.0 with additional terms. // See the LICENSE, LICENSE.LESSER and LICENSE.ADDITIONAL files in the project root for more information. using System; namespace StrixMusic.Sdk.Services.Navigation { /// /// The arguments for navigating to a new page /// /// The type of the navigation objects [Obsolete("This pattern is being phased out and this class should not be used. Use the Messenger pattern instead.")] public sealed class NavigateEventArgs : EventArgs { /// /// Initializes a new instance of the class. /// /// The page to navigate to. /// Whether or not the page is an overlay public NavigateEventArgs(T page, bool overlay = false) { Page = page; IsOverlay = overlay; } /// /// Gets the page being navigated to. /// public T Page { get; } /// /// Gets whether or not the page is an overlay. /// public bool IsOverlay { get; } } }