- Finish rebase
- Touch-up pull request
- Rebase
- Commits are replayed one at a time
- Resolving a conflict in a commit may cause cascading conflicts in future commits
- To complete the rebase process, you must force push
- Consider different tools - GitKraken
public class BaseTabViewModel : BaseViewModel, IActiveAware | |
{ | |
// NOTE: Prism.Forms only sets IsActive, and does not do anything with the event. | |
public BaseTabViewModel(INavigationService navigationService, | |
IViewModelServiceProvider viewModelServiceProvider) | |
: base(navigationService, viewModelServiceProvider) | |
{ | |
var onIsActiveChanged = new WeakEventHandler<EventArgs>(OnIsActiveChanged); | |
IsActiveChanged += onIsActiveChanged.Handler; | |
public static class TaskUtilities | |
{ | |
#pragma warning disable RECS0165 // Asynchronous methods should return a Task instead of void | |
public static async void FireAndForgetSafeAsync(this Task task, Action<Exception> handleErrorAction = null) | |
#pragma warning restore RECS0165 // Asynchronous methods should return a Task instead of void | |
{ | |
try | |
{ | |
await task.ConfigureAwait(true); | |
} |
@dylbot9000
var tabbedPage = new TabbedPage();
tabbedPage.Children.Add(new ViewA());
var navigationPage = new NavigationPage(new ViewB());
tabbedPage.Children.Add(navigationPage);
// selectedTab=ViewB
tabbedPage.CurrentPage = navigationPage;
// This should result in a Tabbed Page with ViewA & ViewB as tabs and ViewB as the selected Tab...
// ViewC should be a Modal over the TabbedPage
NavigationService.NavigateAsync("TabbedPage?createTab=ViewA&createTab=ViewB&selectedTab=ViewB/ViewC");
// If we're improving things... then this should create a tab with a NavigationPage with the root ViewB and current page as ViewD...
// The select tab should be able to distinguish it by NavigationPage unless more than one tab has a NavigationPage..
// otherwise it should distinguish which tab by either the root or current which ever matches...
NavigationService.NavigateAsync("TabbedPage?createTab=ViewA&createTab=NavigationPage/ViewB/ViewC/ViewD&selectedTab={NavigationPage|ViewB|ViewD}");
// Second note here that was actually invalid and should not be supported... as the first actual `/` should be treated as an entirely new segment
public bool PromptToConfirmExit | |
{ | |
get | |
{ | |
bool promptToConfirmExit = false; | |
if (MainPage is ContentPage) | |
{ | |
promptToConfirmExit = true; | |
} | |
else if (MainPage is Xamarin.Forms.MasterDetailPage masterDetailPage |