Framework design based on WPF (5) Ribbon Integration Avalondock 2.0 implementation of multi-document interface design (II.)

Source: Internet
Author: User

Avalondock is a. NET Library, which arranges a series of wpf/winform controls in a docking mode layout (docking). The newly released version natively supports the MVVM framework, Aero snap effects, and better performance.

The Avalondock 2.0 version has been released, the new version is rewritten with the MVVM framework, and appears to be in command mode. The 2.0 version of the document has not yet been published, but you can refer to the Avalon.mvvmtestapp folder in Avalon.testapp or version 2.0 to see the new API.

Boven Introduction about Avalondock Use-"docking for Wpf–avalondock"

And one of the same kind. On multi-document interface design-ribbon Integration Avalondock 2.0 Implementation of multi-document interface design based on WPF system Framework (i)

A single document interface style is a common layout option for Windows applications. Notepad in Microsoft windows is a typical example of a single document interface application. In Notepad, only one document can be opened at the same time. The Explorer style interface is a single window that contains two panes or ranges, usually consisting of a tree or hierarchical view on the left and a display area to the right, as is the case with Microsoft Windows Explorer. The Explorer style interface is suitable for locating or browsing a large number of documents, pictures, or files.

Multiple-document interfaces are introduced from Microsoft Excel spreadsheet programs under Windows 2.0, because Excel spreadsheet users sometimes need to manipulate several tables simultaneously.

Based on the flexibility of multi-document and Multitask mode operation, the Ribbon framework is also integrated with multiple document interface layout function, and the following is the implementation of a case.

Preparation: Download Avalondock and examples on this site: http://avalondock.codeplex.com/

Main layout frame:

Xceed.Wpf.AvalonDock.dll

The other is the theme style template:

Xceed.Wpf.AvalonDock.Themes.Expression.dll

Xceed.Wpf.AvalonDock.Themes.Metro.dll

Xceed.Wpf.AvalonDock.Themes.VS2010.dll

Adding references

Add these assemblies to the project reference, as shown in the following illustration:

Add Dock label in XAML

Open MainWindow.xaml in XAML mode and add the dock label as follows:

<ad:dockingmanager x:name= "Dockmanager" grid.row= "1" > <ad:DockingManager.Theme> & lt;themes:expressionbluetheme/><!--theme Style, consistent with ribbon theme--> </ad:DockingManager.Theme> & lt;xcad:layoutroot> <xcad:layoutpanel orientation= "Vertical" > <xcad:layout Documentpanegroup> <xcad:LayoutDocumentPane> <xcad:layoutd Ocument contentid= "Document1" title= "Query Users" > &LT;/XCAD:
    
                            layoutdocument> <xcad:layoutdocument contentid= "Documen2" title= "Add User" > </xcad:LayoutDocument> <xcad:layoutdocument contentid= "Documen3" title= "Update User" > </xcad:LayoutDocument> </xcad:layoutdoc
          Umentpane>          </xcad:LayoutDocumentPaneGroup> </xcad:LayoutPanel> </xcad:layou
                    troot> <!--<xcad:LayoutRoot> <xcad:layoutpanel orientation= "Vertical" > <xcad:LayoutDocumentPane/> <xcad:layoutanchorablepane name= "Toolspane" Doc
            kheight= "> </xcad:LayoutAnchorablePane> </xcad:LayoutPanel>" </xcad:LayoutRoot>--> </ad:DockingManager>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.