{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "pdfviewer-custom-toolbar",
  "framework": "wpf",
  "type": "registry:component",
  "component": "PdfViewer",
  "variant": "custom-toolbar",
  "dependencies": [
    "Syncfusion.PdfViewer.WPF"
  ],
  "description": "PdfViewer with custom toolbar containing document navigation, zoom, and utility buttons.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/wpf/llms.txt",
    "skillPack": "syncfusion/wpf-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/wpf/pdfviewer-custom-toolbar.md"
  },
  "files": [
    {
      "target": "src/components/pdfviewer-custom-toolbar/PdfViewer.xaml",
      "content": "<UserControl\n    x:Class=\"CustomToolbar.MainWindow\"\n    xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"\n    xmlns:x=\"http://schemas.microsoft.com/winfx/2006/xaml\"\n    xmlns:cc=\"clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF\"\n    xmlns:syncfusion=\"http://schemas.syncfusion.com/wpf\"\n    SnapsToDevicePixels=\"True\">\n\n    <!-- A RibbonWindow accepts a single child, so the ribbon and the viewer\n         share one root grid. -->\n    <Grid>\n        <Grid.RowDefinitions>\n            <RowDefinition Height=\"Auto\" />\n            <RowDefinition Height=\"Auto\" />\n            <RowDefinition Height=\"*\" />\n        </Grid.RowDefinitions>\n\n        <syncfusion:Ribbon x:Name=\"MyRibbon\"\n                           Grid.Row=\"0\"\n                           BackStageColor=\"#D24726\"\n                           BackStageHeader=\"FILE\"\n                           EnableMoreCommands=\"False\">\n        <syncfusion:RibbonTab Caption=\"Home\" IsChecked=\"True\">\n\n            <!-- File commands -->\n            <syncfusion:RibbonBar Header=\"File\" IsEnabled=\"True\">\n                <DockPanel>\n                    <Button Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"OpenButton_Click\"\n                            Content=\"Open\" />\n                    <Button Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"SaveButton_Click\"\n                            Content=\"Save\" />\n                    <Button x:Name=\"PrintButton\"\n                            Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"PrintButton_Click\"\n                            Content=\"Print\" />\n                </DockPanel>\n            </syncfusion:RibbonBar>\n\n            <!-- Page navigation commands -->\n            <syncfusion:RibbonBar Header=\"Navigation\">\n                <DockPanel>\n                    <Button x:Name=\"FirstButton\"\n                            Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"FirstButton_Click\"\n                            Content=\"First\" />\n                    <Button x:Name=\"PreviousButton\"\n                            Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"PreviousButton_Click\"\n                            Content=\"Previous\" />\n                    <TextBox x:Name=\"CurrentPageTextBox\"\n                             Width=\"40\"\n                             Margin=\"4\"\n                             VerticalContentAlignment=\"Center\"\n                             TextAlignment=\"Center\"\n                             KeyDown=\"CurrentPageTextBox_KeyDown\" />\n                    <TextBlock Margin=\"4,0,4,0\"\n                               VerticalAlignment=\"Center\"\n                               Text=\"/\" />\n                    <TextBlock x:Name=\"TotalPageCountTextBlock\"\n                               Margin=\"4,0,4,0\"\n                               VerticalAlignment=\"Center\"\n                               Text=\"0\" />\n                    <Button x:Name=\"NextButton\"\n                            Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"NextButton_Click\"\n                            Content=\"Next\" />\n                    <Button x:Name=\"LastButton\"\n                            Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"LastButton_Click\"\n                            Content=\"Last\" />\n                </DockPanel>\n            </syncfusion:RibbonBar>\n\n            <!-- Zoom commands -->\n            <syncfusion:RibbonBar Header=\"Zoom\">\n                <DockPanel>\n                    <Button x:Name=\"ZoomInButton\"\n                            Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"ZoomInButton_Click\"\n                            Content=\"Zoom In\" />\n                    <Button x:Name=\"ZoomOutButton\"\n                            Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"ZoomOutButton_Click\"\n                            Content=\"Zoom Out\" />\n                    <ComboBox x:Name=\"ZoomComboBox\"\n                              Width=\"80\"\n                              Margin=\"4\"\n                              VerticalAlignment=\"Center\"\n                              SelectionChanged=\"ZoomComboBox_SelectionChanged\" />\n                    <TextBlock x:Name=\"ZoomPercentageTextBlock\"\n                               Margin=\"4,0,4,0\"\n                               VerticalAlignment=\"Center\"\n                               Text=\"100%\" />\n                </DockPanel>\n            </syncfusion:RibbonBar>\n\n            <!-- Find commands -->\n            <syncfusion:RibbonBar Header=\"Find\">\n                <DockPanel>\n                    <TextBox x:Name=\"FindTextBox\"\n                             Width=\"180\"\n                             Margin=\"4\"\n                             VerticalContentAlignment=\"Center\" />\n                    <Button x:Name=\"FindButton\"\n                            Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"FindButton_Click\"\n                            Content=\"Find\" />\n                    <Button x:Name=\"FindNextButton\"\n                            Margin=\"4\"\n                            Padding=\"12,4\"\n                            Click=\"FindNextButton_Click\"\n                            Content=\"Find Next\" />\n                </DockPanel>\n            </syncfusion:RibbonBar>\n        </syncfusion:RibbonTab>\n    </syncfusion:Ribbon>\n\n        <!-- The status strip that shows the state of the loaded document -->\n        <Border Grid.Row=\"1\"\n                Padding=\"10,5\"\n                Background=\"#F3F6FA\"\n                BorderBrush=\"#D5DCE4\"\n                BorderThickness=\"0,0,0,1\">\n            <TextBlock x:Name=\"StatusTextBlock\" Foreground=\"#52606D\" />\n        </Border>\n\n        <!-- The document itself; the built in toolbar is replaced by the ribbon above -->\n        <cc:PdfViewerControl x:Name=\"pdfViewer\"\n                             Grid.Row=\"2\"\n                             Margin=\"8\"\n                             AllowDrop=\"True\"\n                             BorderBrush=\"#D5DCE4\"\n                             BorderThickness=\"1\"\n                             ShowToolbar=\"False\"\n                             WarnBeforeClose=\"False\"\n                             ZoomMode=\"FitWidth\"\n                             DocumentLoaded=\"pdfViewer_DocumentLoaded\" />\n    </Grid>\n</UserControl>\n"
    }
  ]
}