diff --git a/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/Interfaces/IPage.cs b/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/Interfaces/IPage.cs index 10a0424..22c9516 100644 --- a/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/Interfaces/IPage.cs +++ b/src/CSharp/Cores/EasyMicroservices.UI.Cores.Mvvm/Interfaces/IPage.cs @@ -16,7 +16,7 @@ public interface IPage /// /// /// - Action OnBackBottonPresssed { get; set; } + Action OnBackButtonPressedAction { get; set; } /// /// /// diff --git a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Design/Pages/EasyContentPage.cs b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Design/Pages/EasyContentPage.cs index b0ca13f..1ae5acd 100644 --- a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Design/Pages/EasyContentPage.cs +++ b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Design/Pages/EasyContentPage.cs @@ -14,12 +14,13 @@ private void CustomContentPage_Loaded(object sender, EventArgs e) OnLoadComplete?.Invoke(); } - public Action OnBackBottonPresssed { get; set; } + public Action OnBackButtonPressedAction { get; set; } + public Action OnLoadComplete { get; set; } protected override bool OnBackButtonPressed() { - OnBackBottonPresssed?.Invoke(); + OnBackButtonPressedAction?.Invoke(); return base.OnBackButtonPressed(); } diff --git a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Navigations/DefaultNavigationManager.cs b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Navigations/DefaultNavigationManager.cs index 4ab4558..4bcda6f 100644 --- a/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Navigations/DefaultNavigationManager.cs +++ b/src/CSharp/MauiComponents/EasyMicroservices.UI.MauiComponents/Navigations/DefaultNavigationManager.cs @@ -43,7 +43,7 @@ public override async Task PushDataAsync(TD if (page.BindingContext is IResponsibleViewModel responsibleViewModel) { if (ipage != null) - ipage.OnBackBottonPresssed = responsibleViewModel.Close; + ipage.OnBackButtonPressedAction = responsibleViewModel.Close; var result = await responsibleViewModel.GetResult(); if (result != null && result is TResponseData responseData) return responseData;