# C1.WPF.Viewer.MainToolbar

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Viewer_MainToolbar" data-uid="C1.WPF.Viewer.MainToolbar" class="text-break">MainToolbar Class
</h1>
  <div class="markdown level0 summary"><p>The main toolbar for the <a class="xref" href="C1.WPF.Viewer.FlexViewer.html">FlexViewer</a> control.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.control">Control</a></div>
    <div class="level5"><span class="xref">MainToolbar</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Viewer.html">C1.WPF.Viewer</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Viewer.dll</h6>
  <h5 id="C1_WPF_Viewer_MainToolbar_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TemplatePart(Name = &quot;toolBarStack&quot;, Type = typeof(C1ToolStrip))]
[TemplatePart(Name = &quot;openButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;closeButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;navigateBackwardButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;navigateForwardButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;parametersButton&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;printLayoutButton&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;pageSettingsButton&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;outlinesButton&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;thumbnailsButton&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;zoomCombo&quot;, Type = typeof(C1SelectTool))]
[TemplatePart(Name = &quot;menuLayout&quot;, Type = typeof(C1MenuTool))]
[TemplatePart(Name = &quot;menuRotateCW&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;menuRotateCCW&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;menuOnePage&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;menuFacingPages&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;menuTwoPages&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;menuFourPages&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;wideSeparator&quot;, Type = typeof(C1ToolSeparator))]
[TemplatePart(Name = &quot;menuWideLayout&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;firstPageButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;previousPageButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;pageNumberTextBox&quot;, Type = typeof(C1TextBox))]
[TemplatePart(Name = &quot;pageCountText&quot;, Type = typeof(TextBlock))]
[TemplatePart(Name = &quot;nextPageButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;lastPageButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;textSearchButton&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;selectToolButton&quot;, Type = typeof(C1ToggleButtonTool))]
[TemplatePart(Name = &quot;exportButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;printButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;refreshButton&quot;, Type = typeof(C1ButtonTool))]
[TemplatePart(Name = &quot;stopOperationButton&quot;, Type = typeof(C1ButtonTool))]
public class MainToolbar : Control, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TemplatePart(Name:=&quot;toolBarStack&quot;, Type:=GetType(C1ToolStrip))&gt;
&lt;TemplatePart(Name:=&quot;openButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;closeButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;navigateBackwardButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;navigateForwardButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;parametersButton&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;printLayoutButton&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;pageSettingsButton&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;outlinesButton&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;thumbnailsButton&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;zoomCombo&quot;, Type:=GetType(C1SelectTool))&gt;
&lt;TemplatePart(Name:=&quot;menuLayout&quot;, Type:=GetType(C1MenuTool))&gt;
&lt;TemplatePart(Name:=&quot;menuRotateCW&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;menuRotateCCW&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;menuOnePage&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;menuFacingPages&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;menuTwoPages&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;menuFourPages&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;wideSeparator&quot;, Type:=GetType(C1ToolSeparator))&gt;
&lt;TemplatePart(Name:=&quot;menuWideLayout&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;firstPageButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;previousPageButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;pageNumberTextBox&quot;, Type:=GetType(C1TextBox))&gt;
&lt;TemplatePart(Name:=&quot;pageCountText&quot;, Type:=GetType(TextBlock))&gt;
&lt;TemplatePart(Name:=&quot;nextPageButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;lastPageButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;textSearchButton&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;selectToolButton&quot;, Type:=GetType(C1ToggleButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;exportButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;printButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;refreshButton&quot;, Type:=GetType(C1ButtonTool))&gt;
&lt;TemplatePart(Name:=&quot;stopOperationButton&quot;, Type:=GetType(C1ButtonTool))&gt;
Public Class MainToolbar
    Inherits Control
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Viewer_MainToolbar__ctor" data-uid="C1.WPF.Viewer.MainToolbar.#ctor">
          <a class="xref" href="C1.WPF.Viewer.MainToolbar.-ctor.html#C1_WPF_Viewer_MainToolbar__ctor">MainToolbar()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Viewer_MainToolbar_OnApplyTemplate" data-uid="C1.WPF.Viewer.MainToolbar.OnApplyTemplate">
          <a class="xref" href="C1.WPF.Viewer.MainToolbar.OnApplyTemplate.html#C1_WPF_Viewer_MainToolbar_OnApplyTemplate">OnApplyTemplate()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
