Back to Devexpress

DocumentViewerControl.CommandBarStyle Property

wpf-devexpress-dot-xpf-dot-documentviewer-dot-documentviewercontrol-07fc9cc3.md

latest3.1 KB
Original Source

DocumentViewerControl.CommandBarStyle Property

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

Namespace : DevExpress.Xpf.DocumentViewer

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

NuGet Package : DevExpress.Wpf.DocumentViewer.Core

Declaration

csharp
public CommandBarStyle CommandBarStyle { get; set; }
vb
Public Property CommandBarStyle As CommandBarStyle

Property Value

TypeDescription
CommandBarStyle

A CommandBarStyle enumeration value.

|

Available values:

NameDescription
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.

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.

reporting-wpf-hide-specific-export-formats-from-the-document-preview-control/CS/HideExportFormats/MainWindow.xaml#L18

xml
<Grid>
    <dxp:DocumentPreviewControl Name="preview" CommandBarStyle="Bars">
        <dxp:DocumentPreviewControl.HiddenExportFormats>

See Also

DocumentViewerControl Class

DocumentViewerControl Members

DevExpress.Xpf.DocumentViewer Namespace