I have a ContentPage which contains a ListView to which I am binding a collection. Above the List view I have a SearchBar which allows the user to search through the list and this all currently works well. However, I now need to implement a tabbed pages for different items in the list and to still be able to search through each list depending which tab I am on.
Can anyone suggest the best way to achieve this given my current code setup, or am I going to have to rewrite the whole damn thing?
Since ContentPage
can't hold any child pages, you could create your own control for your tab bar (like a Grid
with child Button
s or something), then handle filtering your ListView
based on those Button
clicks.
If you don't want to filter the same ListView
you could load up a separate ListView
for each of the buttons and just toggle the rendering of it.
Answers
Since
ContentPage
can't hold any child pages, you could create your own control for your tab bar (like aGrid
with childButton
s or something), then handle filtering yourListView
based on thoseButton
clicks.If you don't want to filter the same
ListView
you could load up a separateListView
for each of the buttons and just toggle the rendering of it.I like that @AlexDunn . Good thinking.
Cheers!
take a look to XFControl on Github. There is a control that can help you
https://github.com/gruan01/XFControls