I need to create a popup, in which there will be some tabs, each of them containing a listview. I know that there is a TabbedPage, but I need a "TabbedView" so I can build my popup using the Xlabs PopupLayout. How do I do this in Xamarin Forms?
相关问题
- Xamarin. The name 'authorEntry does not exist
- How to implement only emoji keyboard for Entry?
- Error:Xamarin.Forms targets have been imported mul
- Store data and global variables using the Applicat
- Is it possible to use NSUbiquitousKeyValueStore wi
相关文章
- Xamarin form MessagingCenter Unsubscribe is not wo
- Reload data on tab selected in a fragment using vi
- The type initializer for 'SQLite.SQLiteConnect
- What to use for AttributeName in Xamarin Mac
- Start an Activity from another Activity on Xamarin
- Xamarin build error: defining a default interface
- Xamarin Android Player Error when attempting to fi
- How to change the Back Button Text on Xamarin.Form
You can create a custom control yourself.
(imagine you want to create 3 tabs)
For example you can have a view that it's a grid with 2 rows and 3 columns.
1st row you set the buttons set the RowHeight to auto or a size you want, and add each button to each column.
On row 2 you can have a ContentView with RowHeight of * (to fill the rest of the space) , you should also set GridSpan to 3 columns so it will fill all width available on the grid.
Then when you click a button you just have to set the ContentView view to what you want for that particular tab., you can also have animations before changing the content.
Hope it helps
Please have a look at TabView plugin.
I was facing a similar problem in my past project and decided to create a plugin from my implementation.
I've also included a sample project for using TabView here, please have a look.
The plugin is also available in NuGet. Enter the following command in package management console to install the latest version of the plugin in your project:
Since TabView inherits from ContentView, you can use it like any other Views in Xamarin. Here's an example: