Good afternoon, there are TabPanel and 3 TabItem, there is quite a lot of code in them, so you want to somehow separate them, is it possible in c # to have a separate page (WPF Page) loaded on each tabItem?
- try userControl or contenttemplate or so on stackoverflow.com/questions/9796174/load-usercontrol-in-tabitem - user2455111
- But this option will not be better? If you remove TabPanel at all and instead add Frame and already load other pages from the main window into it? How will be better in performance? - Dmitriy
- I understand when there is a TabPanel in the window, the content of all its tabs is loaded immediately, regardless of which one you are in, and in the case of a frame separately. Or not? :) - Dmitry
- You can also load tabs not immediately, for this you need to initialize them not at the time of loading the window, but to the tab switching event, for example, well, or at any time at your convenience - user2455111
- That is, by and large, no matter how you do it, the main thing is to make yourself comfortable? It's just that the project is not small, there are a lot of connections with the database and other nonsense, I think, as it were, the whole thing would not start to lag. And in c # I moved from Web'a just a week ago, knowledge in the work of desktop applications is zero: ( - Dmitry
|