diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj index 40d1bdcd853..8f1117e281a 100644 --- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj +++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj @@ -65,7 +65,7 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/PdfViewers.razor b/src/BootstrapBlazor.Server/Components/Samples/PdfViewers.razor index 867f32fea6b..fb706073708 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/PdfViewers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/PdfViewers.razor @@ -29,10 +29,16 @@ +
+ + ShowToolbar + + +
- diff --git a/src/BootstrapBlazor.Server/Components/Samples/PdfViewers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/PdfViewers.razor.cs index 175db17dd0d..87970de83ed 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/PdfViewers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/PdfViewers.razor.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone @@ -17,6 +17,8 @@ public partial class PdfViewers private int _pageIndex = 1; + private bool _showToolbar = true; + private Task OnLoaded() => ToastService.Success("Pdf Viewer", Localizer["PdfViewerToastSuccessfulContent"]); private Task NotSupportCallback() => ToastService.Error("PdfViewer", Localizer["PdfViewerToastNotSupportContent"]);