file-formats-wpf-demos/pdfviewer/Views/Encryption.xaml

27 строки
1.3 KiB
XML

<democommon:DemoControl
x:Class="syncfusion.pdfviewerdemos.wpf.Encryption"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:cc="clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF"
xmlns:democommon="clr-namespace:syncfusion.demoscommon.wpf;assembly=syncfusion.demoscommon.wpf"
xmlns:local="clr-namespace:syncfusion.pdfviewerdemos.wpf"
Title="Password Protected Document"
x:Name="encryption">
<democommon:DemoControl.DataContext>
<local:EncryptionViewModel />
</democommon:DemoControl.DataContext>
<Grid local:PdfViewerEventAttachUtil.WindowLoaded="True">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
<Button x:Name="userpassword" Content="Open PDF with User Password" Margin="0,0,10,0"/>
<Button x:Name="ownerpassword" Content="Open PDF with Owner Password" Margin="10,0,0,0"/>
</StackPanel>
<cc:PdfViewerControl
x:Name="pdfviewer1"
Grid.RowSpan="3"
Margin="8px"
AllowDrop="True"
WarnBeforeClose="False"
BorderThickness="1"
Visibility="Collapsed"/>
</Grid>
</democommon:DemoControl>