Skip to main content

DocumentViewerControl.CommandBarStyle Property

Specifies the type of a Document Viewer toolbar. This is a dependency property.

Namespace: DevExpress.Xpf.DocumentViewer

Assembly: DevExpress.Xpf.DocumentViewer.v23.2.Core.dll

NuGet Package: DevExpress.Wpf.DocumentViewer.Core

Declaration

public CommandBarStyle CommandBarStyle { get; set; }

Property Value

Type Description
CommandBarStyle

A CommandBarStyle enumeration value.

Available values:

Name Description
None

A viewer control has no toolbar.

Bars

A viewer control has a standard Bars toolbar.

Ribbon

A viewer control has a Ribbon toolbar.

Remarks

The Document Preview may include a toolbar, which displays buttons for navigation through a document, printing and exporting. The following two toolbar types are supported.

Use the CommandBarStyle property to specify the toolbar type.

wpf-document-viewer-generate-ribbon-layout

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CommandBarStyle property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also