Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XF] Add the ability to switch tabs #1615

Closed
brianlagunas opened this issue Nov 10, 2018 · 6 comments
Closed

[XF] Add the ability to switch tabs #1615

brianlagunas opened this issue Nov 10, 2018 · 6 comments

Comments

@brianlagunas
Copy link
Member

brianlagunas commented Nov 10, 2018

Description

When you are within a TabbedPage, it is sometimes necessary to change tabs, but not actually navigate to another page. Simply select a different tab in the same TabbedPage. It would be helpful to pass parameters and respect the INavigationAware and IConfirmaNavigation interfaces so I can control if I am allows to switch tabs, and have access to various parameters as I change tabs.

API Spec

I am thinking of adding a new extension method for the INavigationSevice called SelectTab. In order to access this method, you would add a new namespace to your ViewModel.

using Prism.Navigation.TabbedPages

with the namespace added you wil be abls to select a new tab with

navigationService.SelectTab("tabName", parameters)

@stesvis
Copy link

stesvis commented Nov 10, 2018

+1!

@brianlagunas
Copy link
Member Author

brianlagunas commented Nov 10, 2018

This has been implemented and is available in the latest CI build on our MyGet feed.

@stesvis
Copy link

stesvis commented Dec 15, 2018

When will this be available in the stable NuGet package?
I'm sorry @brianlagunas I am not sure where to get that CI build.
I tried this but I am not able to install it:

PM> Install-Package Prism.Forms -Version 7.2.0.757-ci -Source https://www.myget.org/F/prism/api/v3/index.json
The 'Source' parameter is not respected for the transitive package management based project(s) Mobile\LiveDispatch.Mobile. The enabled sources in your NuGet configuration will be used. 
Restoring packages for R:\Levitica\LiveDispatch\LiveDispatch.Mobile\LiveDispatch.Mobile\LiveDispatch.Mobile.csproj...
  GET https://api.nuget.org/v3-flatcontainer/prism.forms/index.json
  OK https://api.nuget.org/v3-flatcontainer/prism.forms/index.json 419ms
Install-Package : NU1102: Unable to find package Prism.Forms with version (>= 7.2.0.757-ci)
  - Found 34 version(s) in nuget.org [ Nearest version: 7.2.0.708-pre ]
  - Found 0 version(s) in Microsoft Visual Studio Offline Packages
At line:1 char:1
+ Install-Package Prism.Forms -Version 7.2.0.757-ci -Source https://www ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
 
Install-Package : Package restore failed. Rolling back package changes for 'LiveDispatch.Mobile'.
At line:1 char:1
+ Install-Package Prism.Forms -Version 7.2.0.757-ci -Source https://www ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Install-Package], Exception
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
 
Time Elapsed: 00:00:01.8535102

@brianlagunas
Copy link
Member Author

brianlagunas commented Dec 15, 2018

We do not have or publish any release dates.

Read how to add CI builds here: http://prismlibrary.github.io/docs/getting-started/NuGet-Packages.html

@stesvis
Copy link

stesvis commented Dec 21, 2018

Thanks, if i am not mistaken, does the latest version require the pre-release of Xamarin.Forms?

@lock
Copy link

lock bot commented Jan 28, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants