Home > Net >  The WPF TreeView node is a lot of, how to make it more pages display instead of the scroll bar drop-
The WPF TreeView node is a lot of, how to make it more pages display instead of the scroll bar drop-

Time:11-14

TreeView node is a lot of, the current page, will automatically shows a scroll bar, now want to make it as page shows so many nodes such as 100, to do a flip effect, such as add two page button, the current page will display 10 nodes, the next page will show the other 10 nodes, points back showed 10 previous node
How to do it, please? Give a thought to also go, thank you very much!!!!!!

CodePudding user response:

Custom Template, meet the requirements of rolling trigger page button is available, or does not display the scroll bar, add a trigger, rolling into pages, the code can be a bit complicated,

CodePudding user response:

reference 1st floor icoolno1 response:
custom Template, to fulfill the requirements of rolling trigger page button is available, or does not display the scroll bar, add a trigger, the scroll into pages, the code can be a bit complicated,

Simple, allowing the emergence of the scroll bar, page button has been, fixed number of nodes in the current page shows, that's good to get it

CodePudding user response:

Consider the building Lord, what is the TreeView? TreeView node X need paging to display a subset? You ever thought about whether your data source intermediate should be a filter, or is simply the logical function of discretion, something should be separated to the other controls or components,

CodePudding user response:

"Front page shows 10 nodes, point the next page will show another 10 nodes" this is the business logic, if too lazy to take the manager according to the business logic data structure, so is often costly randomly change the interface people dead,

CodePudding user response:

You in defining business logic data structure Model when they write data grouped by page, and then ask your product manager and out of this idea to input data, according to the structure you see they are willing to don't want to? If you like, then you take a few minutes to write a data import code to go,

CodePudding user response:

Is, in fact, I don't really to "business logic" problem, this problem can see some people all of a sudden a Tree hung a waste subproject (200 muck project, for example, who see?) Without the information well, it is very simple, this is the product model and data classification in the field of the problem of low,
  •  Tags:  
  • C#
  • Related