-
I'm refactoring a GUI project that has a shell view with multiple tabs. Each tab corresponds to a Page control. I wonder if Stylet view can be a Page control or it has to be a Window control? If latter, what options do I have in order to use Stylet? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Views are normally Windows (which are shown using For a TabControl, the recommended way is documented here. The ShellViewModel owns a collection of child ViewModels (one per tab), and the ShellView binds those to tabs through a templated ContentControl. |
Beta Was this translation helpful? Give feedback.
Views are normally Windows (which are shown using
.ShowWindow()
or.ShowDialog()
using theIWindowManager
), or UserControls (which are shown inside aContentControl
. You could probably have a view which is a Page, but I can't think of a situation where that would be useful.For a TabControl, the recommended way is documented here. The ShellViewModel owns a collection of child ViewModels (one per tab), and the ShellView binds those to tabs through a templated ContentControl.