okunevdm
okunevdm
same behavior occured when i try call StopAsync() with down network interface.
I fix this bug in my project by create my own ContentPage with needed behaviour of _userControlLogic
> @okunevdm did you use the UserControlLogic.CloseViewModelOnUnloaded property or came up with another solution? this is my ContentPage class ` public class ContentPage : global::Xamarin.Forms.ContentPage, IView { private readonly UserControlLogic...
for hardware back button in android i override in MainActivity ` public override void OnBackPressed() { // retrieve the current xamarin forms page instance var currentPage = Xamarin.Forms.Application.Current.MainPage.Navigation.NavigationStack.LastOrDefault(); // check...
> Probably I'm blind, but there is only one difference: CustomBackButtonAction. I do not see how this changes the current behavior. CustomBackButtonAction uses in concrete instance of contentPage: ` [XamlCompilation(XamlCompilationOptions.Compile)]...
now i can not use ViewModel for control of Navigation behavior because of issue [https://github.com/Catel/Catel/issues/1252](url) - i can not show message with buttons yes/no, but DisplayAlert works fine.
default CustomBackButtonAction is `protected async void OnBackButtonActionAsync()` in constructor: `this.CustomBackButtonAction = OnBackButtonActionAsync;` when back button pressed (hardware or software) it call CustomBackButtonAction. and then: ``` protected async void OnBackButtonActionAsync() {...
oh, yes of course.. )) I forgot that I really used CloseViewModelOnUnloaded and when copy paste code of ContentPage i cut it... sorry. I add this property to ContentPage and...
why? i use NavigationPage/NavigationService and it work fine.
it closed via ``` protected sealed override bool OnBackButtonPressed() { BackButtonPressed?.Invoke(this, EventArgs.Empty); return base.OnBackButtonPressed(); } ``` and then `OnBackPressed()` in MainActivity in my project VM closing. may be i forgot...