开发者

What to use as the container with ribbon control?

I'm writing a data-entry software with lots of pages. For example one page for entering team data and another page for entering match data. I want to use the new fancy Microsoft ribbon control to organize different pages and categories.

The problem is I'm new to WPF and I don't know what should I use for:

a. The container of pages (should I create a usercontrol for each page?)

b. The container on the main page where ribbon is placed. (By clicking each ribbon button an specific page should 开发者_如何学编程be opened on the main window.)

What would you do?


You could use a DockPanel for the main layout, a TabControl docked to the top for the ribbon, and a ContentControl filling the rest of your application. When a button gets clicked in the TabControl, set the ContentTemplate of the ContentControl.


if you are using the actual RibbonControl from Microsoft there is a RibbonWindow that is used to host the ribbon.

http://blogs.msdn.com/b/jaimer/archive/2010/08/04/wpf-ribbon-has-been-released.aspx?wa=wsignin1.0

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜