开发者

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

开发者 https://www.devze.com 2022-12-29 13:39 出处:网络
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 wi开发者_C百科ndow, in other words, the window is

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 wi开发者_C百科ndow, 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#?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消