diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/SampleBrowser.Maui.PdfViewer.csproj b/PdfViewer/SampleBrowser.Maui.PdfViewer/SampleBrowser.Maui.PdfViewer.csproj index d6d0503..506e336 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/SampleBrowser.Maui.PdfViewer.csproj +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/SampleBrowser.Maui.PdfViewer.csproj @@ -1,7 +1,7 @@ - net9.0-android;net9.0-ios;net9.0-maccatalyst - $(TargetFrameworks);net9.0-windows10.0.19041.0 + net10.0-android;net10.0-ios;net10.0-maccatalyst + $(TargetFrameworks);net10.0-windows10.0.19041.0 Exe SampleBrowser.Maui.PdfViewer true diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/Annotations/View/Annotations.xaml.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/Annotations/View/Annotations.xaml.cs index f6927f7..4f9f3ab 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/Annotations/View/Annotations.xaml.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/Annotations/View/Annotations.xaml.cs @@ -23,7 +23,7 @@ public partial class Annotations : SampleView /// bool undoAlreadyExecuted = false; #if ANDROID || IOS - private ViewCell? lastCell; + private View? lastCell; #endif public Stream CustomStampImageStream { get; set; } = new MemoryStream(); public double CustomStampWidth { get; set; } @@ -411,7 +411,11 @@ async void ShowToast(string text) toast.Opacity = 1; toastText.Text = text; toast.InputTransparent = true; +#if NET10_0_OR_GREATER + await toast.FadeToAsync(0, 2000, Easing.SinIn); +#else await toast.FadeTo(0, 2000, Easing.SinIn); +#endif } private void UndoCommand_CanExecuteChanged(object? sender, EventArgs e) @@ -628,12 +632,11 @@ private void ViewCell_Tapped(object sender, EventArgs e) { #if ANDROID || IOS if (lastCell != null) - lastCell.View.BackgroundColor = Colors.Transparent; - var viewCell = (ViewCell)sender; - if (viewCell.View != null) + lastCell.BackgroundColor = Colors.Transparent; + if (sender is View tappedView) { - viewCell.View.BackgroundColor = Color.FromArgb("#0A000000"); - lastCell = viewCell; + tappedView.BackgroundColor = Color.FromArgb("#0A000000"); + lastCell = tappedView; } #endif } diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/ImageSignatureCreateView.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/ImageSignatureCreateView.cs index 980307b..8e6ae20 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/ImageSignatureCreateView.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/ImageSignatureCreateView.cs @@ -21,7 +21,7 @@ namespace SampleBrowser.Maui.PdfViewer.SfPdfViewer { internal class ImageSignatureCreateView : SfView, ISignatureCreateView { - string? imageFilePath; + string? imageFilePath = String.Empty; Stream? imageStream; private static readonly BindableProperty SignatureUploadButtonColorProperty = BindableProperty.Create("SignatureUploadButtonColor", typeof(Color), typeof(ImageSignatureCreateView), defaultValue: Color.FromArgb("#6750A4")); @@ -158,6 +158,44 @@ private async void Element_Drop(object sender, Microsoft.UI.Xaml.DragEventArgs e private async void UploadButton_Clicked(object? sender, System.EventArgs e) { +#if (ANDROID || WINDOWS) && NET10_0_OR_GREATER + var imageFileResults = await MediaPicker.Default.PickPhotosAsync(new MediaPickerOptions + { + Title = "Select a photo" + }); + if (imageFileResults != null) + { + // If you just want the first photo + var imageFileResult = imageFileResults.FirstOrDefault(); + if (imageFileResult != null) + { + imageStream = await imageFileResult.OpenReadAsync(); + imageFilePath = imageFileResult.FullPath; + if (BindingContext is SignatureViewModel viewModel) + { + viewModel.UploadTabImageSource = new FileImageSource + { + File = imageFilePath + }; + } + } + } +#elif !ANDROID && !WINDOWS && NET10_0_OR_GREATER + var file = await MediaPicker.PickPhotosAsync(); + if (file.Count > 0 && file[0] is FileResult _file) + { + imageStream = await _file.OpenReadAsync(); + Stream copiedImageStream = new MemoryStream(); + imageStream.CopyTo(copiedImageStream); + copiedImageStream.Position = 0; + if (imageStream != null) + { + if (BindingContext is SignatureViewModel viewModel) + viewModel.UploadTabImageSource = ImageSource.FromStream(() => copiedImageStream); + } + + } +#else FileResult? imageFileResult = await MediaPicker.Default.PickPhotoAsync(); if (imageFileResult != null) { @@ -169,6 +207,7 @@ private async void UploadButton_Clicked(object? sender, System.EventArgs e) File = imageFilePath, }; } +#endif } void ISignatureCreateView.Reset() @@ -185,6 +224,12 @@ SignatureItem ISignatureCreateView.GetSignatureItem() HorizontalOptions = LayoutOptions.Center, Source = new FileImageSource { File = imageFilePath } }; + + if (!string.IsNullOrEmpty(imageFilePath)) + image.Source = new FileImageSource { File = imageFilePath }; + else if (imageStream != null) + image.Source = ImageSource.FromStream(() => { return imageStream; }); + ImageSignatureItem signatureItem = new ImageSignatureItem(imageStream, imageFilePath, image); return signatureItem; } diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/SignatureListDialog.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/SignatureListDialog.cs index 6554fa5..a8b1b16 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/SignatureListDialog.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/SignatureListDialog.cs @@ -103,12 +103,16 @@ private void AddSignatureListview() ListView.ScrollBarVisibility = ScrollBarVisibility.Default; ListView.ItemTemplate = new DataTemplate(() => { - ViewCell view = new ViewCell(); + SignatureListItemView grid = new SignatureListItemView(); grid.DeleteClicked += Grid_DeleteClicked; +#if NET10_0_OR_GREATER + return grid; +#else + ViewCell view = new ViewCell(); view.View = grid; - return view; +#endif }); Grid.SetRow(ListView, 0); mainGrid?.Children?.Add(ListView); diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/SignatureSwipeView.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/SignatureSwipeView.cs index 3bff65f..67f68f4 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/SignatureSwipeView.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/Signature/SignatureSwipeView.cs @@ -226,16 +226,20 @@ SfListView CreateSignatureListview() listView.ScrollBarVisibility = ScrollBarVisibility.Default; listView.ItemTemplate = new DataTemplate(() => { - ViewCell view = new ViewCell(); + SignatureListBorder border = new SignatureListBorder(); border.LongPressed += ListBorder_LongPressed; border.Tapped += ListBorder_Tapped; ContentView image = new ContentView(); image.SetBinding(ContentView.ContentProperty, new Binding("View")); border.Content = image; +#if NET10_0_OR_GREATER + return border; +#else + ViewCell view = new ViewCell(); view.View = border; - return view; +#endif }); return listView; } diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/StampAnnotation/View/StampViewDesktop.xaml b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/StampAnnotation/View/StampViewDesktop.xaml index 18bb6d3..956a901 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/StampAnnotation/View/StampViewDesktop.xaml +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/StampAnnotation/View/StampViewDesktop.xaml @@ -2,6 +2,7 @@ @@ -23,14 +24,14 @@ BackgroundColor="{AppThemeBinding Light={StaticResource SampleBrowserBackgroundLight}, Dark={StaticResource BackgroundDark},Default=#EEE8F4}" PropertyChanged="StandardStampMenu_PropertyChanged" Stroke="#33000000" HeightRequest="500" WidthRequest="280" VerticalOptions="End"> - - + - + - + - - + + diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/StampAnnotation/View/StampViewDesktop.xaml.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/StampAnnotation/View/StampViewDesktop.xaml.cs index 39337d3..e189ae6 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/StampAnnotation/View/StampViewDesktop.xaml.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/Controls/StampAnnotation/View/StampViewDesktop.xaml.cs @@ -147,11 +147,11 @@ private void StandardStampMenu_PropertyChanged(object sender, System.ComponentMo } } - private void Stamp_ItemTapped(object sender, Microsoft.Maui.Controls.ItemTappedEventArgs e) + private void Stamp_ItemTapped(object sender, Syncfusion.Maui.ListView.ItemTappedEventArgs e) { if (StampHelper != null) { - if (e.Item is StandardStamps standardStamp && standardStamp.LabelText != null) + if (e.DataItem is StandardStamps standardStamp && standardStamp.LabelText != null) { stampType = GetStampType(standardStamp.LabelText); StampMode = true; diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/View/CustomToolbar.xaml.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/View/CustomToolbar.xaml.cs index ba5aabf..13dc474 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/View/CustomToolbar.xaml.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/View/CustomToolbar.xaml.cs @@ -12,11 +12,10 @@ using SampleBrowser.Maui.Base; using Syncfusion.Maui.Core.Internals; using Syncfusion.Maui.PdfViewer; -using Syncfusion.Pdf.Parsing; using Syncfusion.Pdf; +using Syncfusion.Pdf.Parsing; using System.IO; using System.Reflection; -using Syncfusion.Maui.Core.Converters; namespace SampleBrowser.Maui.PdfViewer.SfPdfViewer; [XamlCompilation(XamlCompilationOptions.Compile)] @@ -31,7 +30,11 @@ public partial class CustomToolbar : SampleView /// bool undoAlreadyExecuted = false; #if ANDROID || IOS +#if NET10_0_OR_GREATER + private View? lastCell; +#else private ViewCell? lastCell; +#endif #endif public Stream CustomStampImageStream { get; set; } = new MemoryStream(); public double CustomStampWidth { get; set; } @@ -404,7 +407,11 @@ async void ShowToast(string text) { toast.Opacity = 1; toastText.Text = text; +#if NET10_0_OR_GREATER + await toast.FadeToAsync(0, 2000, Easing.SinIn); +#else await toast.FadeTo(0, 2000, Easing.SinIn); +#endif } private void UndoCommand_CanExecuteChanged(object? sender, EventArgs e) @@ -735,7 +742,16 @@ private void PdfViewer_DocumentLoadFailed(object sender, DocumentLoadFailedEvent private void ViewCell_Tapped(object sender, EventArgs e) { #if ANDROID || IOS +#if NET10_0_OR_GREATER if (lastCell != null) + lastCell.BackgroundColor = Colors.Transparent; + if (sender is View tappedView) + { + tappedView.BackgroundColor = Color.FromArgb("#0A000000"); + lastCell = tappedView; + } +#else + if (lastCell != null) lastCell.View.BackgroundColor = Colors.Transparent; var viewCell = (ViewCell)sender; if (viewCell.View != null) @@ -743,6 +759,7 @@ private void ViewCell_Tapped(object sender, EventArgs e) viewCell.View.BackgroundColor = Color.FromArgb("#0A000000"); lastCell = viewCell; } +#endif #endif } diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/ViewModel/CustomToolbarViewModel.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/ViewModel/CustomToolbarViewModel.cs index f91f0c6..c99d9e9 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/ViewModel/CustomToolbarViewModel.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/CustomToolbar/ViewModel/CustomToolbarViewModel.cs @@ -4172,12 +4172,20 @@ internal async void SaveDocument() if (FileData != null && FileData.FileName != null) { string? filePath = await FileService.SaveAsAsync(FileData.FileName, outStream); +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("File saved", $"The file is saved to {filePath}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("File saved", $"The file is saved to {filePath}", "OK"); +#endif } } catch (Exception exception) { +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("Error", $"The file is not saved. {exception.Message}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("Error", $"The file is not saved. {exception.Message}", "OK"); +#endif } } @@ -4204,7 +4212,11 @@ internal async void ImportAnnotations() } catch (Exception exception) { +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("Error", $"The file is not imported. {exception.Message}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("Error", $"The file is not imported. {exception.Message}", "OK"); +#endif } } } @@ -4235,12 +4247,20 @@ internal async void ExportAnnotations() { string exportedPdfFileName = FileData.FileName.Replace(".pdf", ".xfdf"); string? filePath = await FileService.SaveAsAsync(exportedPdfFileName, outStream); +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("File saved", $"The file is saved to {filePath}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("File saved", $"The file is saved to {filePath}", "OK"); +#endif } } catch (Exception exception) { +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("Error", $"The file is not saved. {exception.Message}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("Error", $"The file is not saved. {exception.Message}", "OK"); +#endif } } finally diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/FormFilling/FileService.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/FormFilling/FileService.cs index 17b18a6..3506709 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/FormFilling/FileService.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/FormFilling/FileService.cs @@ -57,7 +57,13 @@ public partial class FileService return new PdfFileData(result.FileName, await result.OpenReadAsync()); } else + { +#if NET10_0_OR_GREATER + Application.Current?.Windows[0].Page?.DisplayAlertAsync("Error", $"Pick a file of type {fileExtension}", "OK"); +#else Application.Current?.Windows[0].Page?.DisplayAlert("Error", $"Pick a file of type {fileExtension}", "OK"); +#endif + } } } return null; @@ -69,7 +75,11 @@ public partial class FileService message = ex.Message; else message = "File open failed."; +#if NET10_0_OR_GREATER + Application.Current?.Windows[0].Page?.DisplayAlertAsync("Error", message, "OK"); +#else Application.Current?.Windows[0].Page?.DisplayAlert("Error", message, "OK"); +#endif } return null; } diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/FormFilling/FormFilling.xaml.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/FormFilling/FormFilling.xaml.cs index 7ecba9b..c728f6b 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/FormFilling/FormFilling.xaml.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/FormFilling/FormFilling.xaml.cs @@ -30,12 +30,21 @@ private async void saveAsButton_Clicked(object sender, EventArgs e) if (viewModel.FileData != null) { string? filePath = await FileService.SaveAsAsync(viewModel.FileData.FileName, outStream); +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("File saved", $"The file is saved to {filePath}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("File saved", $"The file is saved to {filePath}", "OK"); +#endif + } } catch (Exception exception) { +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("Error", $"The file is not saved. {exception.Message}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("Error", $"The file is not saved. {exception.Message}", "OK"); +#endif } } @@ -53,7 +62,11 @@ private async void importButton_Clicked(object sender, EventArgs e) } catch (Exception exception) { +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("Error", $"The file is not imported. {exception.Message}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("Error", $"The file is not imported. {exception.Message}", "OK"); +#endif } } } @@ -68,12 +81,20 @@ private async void exportButton_Clicked(object sender, EventArgs e) { string exportedFormFileName = viewModel.FileData.FileName.Replace(".pdf", ".xfdf"); string? filePath = await FileService.SaveAsAsync(exportedFormFileName, outStream); +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("File saved", $"The file is saved to {filePath}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("File saved", $"The file is saved to {filePath}", "OK"); +#endif } } catch (Exception exception) { +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("Error", $"The file is not saved. {exception.Message}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("Error", $"The file is not saved. {exception.Message}", "OK"); +#endif } } diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/GettingStarted/View/GettingStarted.xaml.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/GettingStarted/View/GettingStarted.xaml.cs index 4599d75..4441114 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/GettingStarted/View/GettingStarted.xaml.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/GettingStarted/View/GettingStarted.xaml.cs @@ -120,11 +120,19 @@ private async void FileSaveButton_Clicked(object? sender, EventArgs e) try { string? filePath = await FileService.SaveAsAsync(currentFileName, savedStream); +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("File saved", $"The file is saved to {filePath}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("File saved", $"The file is saved to {filePath}", "OK"); +#endif } catch (Exception exception) { +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("Error", $"The file is not saved. {exception.Message}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("Error", $"The file is not saved. {exception.Message}", "OK"); +#endif } } } diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/InvisibleSignature/ViewModel/InvisibleSignatureViewModel.cs b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/InvisibleSignature/ViewModel/InvisibleSignatureViewModel.cs index 780d17b..bba30fc 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/InvisibleSignature/ViewModel/InvisibleSignatureViewModel.cs +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/InvisibleSignature/ViewModel/InvisibleSignatureViewModel.cs @@ -174,12 +174,20 @@ internal async void SaveDocument() if (fileName != null) { string? filePath = await FileService.SaveAsAsync(fileName, signatureValidatedStream); +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("File saved", $"The file is saved to {filePath}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("File saved", $"The file is saved to {filePath}", "OK"); +#endif } } catch (Exception exception) { +#if NET10_0_OR_GREATER + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("Error", $"The file is not saved. {exception.Message}", "OK"); +#else await Application.Current!.Windows[0].Page!.DisplayAlert("Error", $"The file is not saved. {exception.Message}", "OK"); +#endif } } @@ -203,7 +211,7 @@ internal void ValidatedSignature(MemoryStream str) byte[] data = new byte[pfxFile!.Length]; pfxFile?.Read(data, 0, data.Length); X509Certificate2Collection collection = new X509Certificate2Collection(); -#if NET9_0 +#if NET9_0_OR_GREATER X509Certificate2 certificate = X509CertificateLoader.LoadPkcs12(data, "password123"); #else X509Certificate2 certificate = new X509Certificate2(data, "password123"); diff --git a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/ShowAndHideFormField/View/ShowAndHideFormField.xaml b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/ShowAndHideFormField/View/ShowAndHideFormField.xaml index e383995..81f0ed1 100644 --- a/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/ShowAndHideFormField/View/ShowAndHideFormField.xaml +++ b/PdfViewer/SampleBrowser.Maui.PdfViewer/Samples/PdfViewer/ShowAndHideFormField/View/ShowAndHideFormField.xaml @@ -5,7 +5,8 @@ xmlns:local="clr-namespace:SampleBrowser.Maui.PdfViewer.SfPdfViewer" xmlns:core="clr-namespace:Syncfusion.Maui.Core.Converters;assembly=Syncfusion.Maui.Core" xmlns:syncfusion="clr-namespace:Syncfusion.Maui.PdfViewer;assembly=Syncfusion.Maui.PdfViewer" - xmlns:listType="clr-namespace:SampleBrowser.Maui.PdfViewer.Samples.PdfViewer.ShowAndHideFormField.View" + xmlns:listType="clr-namespace:SampleBrowser.Maui.PdfViewer.Samples.PdfViewer.ShowAndHideFormField.View" + xmlns:listView="clr-namespace:Syncfusion.Maui.ListView;assembly=Syncfusion.Maui.ListView" x:Class="SampleBrowser.Maui.PdfViewer.SfPdfViewer.ShowAndHideFormField"> @@ -114,19 +115,19 @@ DocumentSource="{Binding DocumentStream}" DocumentLoaded="PdfViewer_DocumentLoaded" Tapped="PdfViewer_Tapped" FormFieldFocusChanged="FormField_FocusedChange" /> - - - + - + @@ -146,10 +147,10 @@