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

How to use tab/pivot control in the Master/Detail layout? #891

Closed
yanxiaodi opened this issue Feb 7, 2017 · 2 comments
Closed

How to use tab/pivot control in the Master/Detail layout? #891

yanxiaodi opened this issue Feb 7, 2017 · 2 comments
Labels
controls 🎛️ question ❔ Issues or PR require more information

Comments

@yanxiaodi
Copy link

I found the Master/Detail control in the project. It's very cool and makes it easily to implement a Master/Detail layout like the Mail App. But I want to put a pivot control as container in the Master panel, and every pivot item do has a ListView as a child. How to do this? Or can I use this control for this requirement?

Thanks!

@skendrot
Copy link
Contributor

skendrot commented Feb 7, 2017

You can accomplish this by restyling the control. You can replace the ListView that is in the master section. You would then need define how the SelectedItem property is set. By default we bind the SelectedItem of the ListView to the SelectedItem of the control. If you are using a Pivot with ListView as content, the easiest way to set the SelectedItem would be by subscribing to the SelectionChanged event of each ListView and then set the SelectedItem of the MasterDetailsView.

@yanxiaodi
Copy link
Author

Thank you! I'll try it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
controls 🎛️ question ❔ Issues or PR require more information
Projects
None yet
Development

No branches or pull requests

3 participants