开发者

WPF control with navigation capability

开发者 https://www.devze.com 2023-04-11 18:46 出处:网络
I have something like 15 grids and I want to put them in on one control with some kind of navigation ... something like tabs panel but instead of tabs I would like to have开发者_如何学运维 arrow or pa

I have something like 15 grids and I want to put them in on one control with some kind of navigation ... something like tabs panel but instead of tabs I would like to have开发者_如何学运维 arrow or page number.

Any Idea?


Place all the (15) grids in a List<Grid> gridList. Create a ContentControl and put first item of gridList as content of ContentControl. Provide buttons(arrow) for forward and back. On the arrow button click change the content of ContentControl based on which button (forward or backward) has been clicked by selecting appropriate Grid from the gridList.


Use Frame with several Page objects - you will get Next and Previous controls, history and more for free.

Creating navigation based applications in WPF.

0

精彩评论

暂无评论...
验证码 换一张
取 消