c# - Navigation menu for a standalone WPF application -
I'm just starting with wpf (in mix 4) and I would like to create an application that includes a The side menu contains the content. What I want under the File menu is something like 2010 word if you click on the menu on the left, accordingly the contents of the change on the right side I have a page in a frame page Have read about the nesting of XML and have changed the frame navigation source to each page. Is it true? When I do this, a navigation bar appears at the top, I can get rid of that easy but it seems like I'm taking the wrong path on what I want to achieve.
Thank you in advance.
To just chime it, TabControl
and frames
- Based solutions are at the peak of both a spectrum tab control tab affects a very close coupling between the state and the displayed UI (for example, you may find it difficult to change the dialog for which there is no clear Tab object is not), while enabling frame relatively loose coupling But may Overkill for this situation, because it is to support full-blown linear navigation history / page stack. (Prism, for example, provides a similar mechanism through the concept of its "regions".)
A central "window frame" UI may have a placeholder element in the middle ground, And get your personal "page" from user control
, to make them a regular UI element, to switch to a specific page in your UI, you can control related user controls (code or XML resources) ), And set it as the content
property of the placeholder element at the top (this is basically the same mechanism that you have mentioned for VB, where you have to subform Hide.)
So there are many options to choose from depending on the actual obstacles in your scenario.
Comments
Post a Comment