How to make Multi-Pane GUI in WPF or C#?

一笑奈何 提交于 2019-12-12 04:48:01

问题


I have seen this user interface in some screen shots of some RSS Readers. It is a multi-pane user interface. THere are three panels or "panes" to the window, in other words, the window is divided into three parts and the user is able to mouse over the division and click on the seperation bar and resize the section.

How is this sort of GUI developed in C#?


回答1:


In WinForms, this is done with a SplitContainer. The Orientation property can be used to get vertical or horizontal splits. You can also nest splitcontainers to get multiple splits.

In WPF there is no SplitContainer, but the same effect can be achieved with a Grid and a GridSplitter.

Finally, note that "WPF or C#" is a false dichotomy. WPF and WinForms are just UI frameworks in the .NET framework. Both can be used with any .NET language, including C#, VB.NET, etcetera.



来源:https://stackoverflow.com/questions/2776713/how-to-make-multi-pane-gui-in-wpf-or-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!