I have a situation where I am showing a set of PivotItem
s and (depending on the situation) a favorites one.
I need to be able to hide this pivot when the List containing my favorites is empty - yet it needs to show up when there is something there.
Now, I could just remove it, but what about this scenario:
PivotItem
s and select an item.Now there will be no favorites-pivot, and that just isn't good enough.
I have tried to remove it with Visibility="hidden", but VS is complaining about the data context not being specified properly (it is.)
Any ideas?
Why don't add and remove the PivotItem
dynamically in your code in response to user events?
The user adds a favorite -> create and add the Pivot item.
The user removes his last favorite item -> remove the Pivot item.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With