public void ShowCaption(string text, bool error = false, bool show = true) { //close dialogviews DialogView.CloseLast(); if (show) { gridCaption.IsVisible = true; } lblCaption.Text = text; lblCaption.TextColor = error ? Visual.Foreground : Visual.CaptionForeground; settingsView.SetErrorMessage(text); }
protected override bool OnBackButtonPressed() { if (DialogView.AnyOpened) { DialogView.CloseLast(); return(true); } else if (tabsView.AnyOpened()) { tabsView.HideAll(); return(true); } else { return(base.OnBackButtonPressed()); } }