file-formats-wpf-demos/presentation/Views/WriteProtection.xaml

62 строки
3.7 KiB
XML

<democommon:DemoControl
x:Class="syncfusion.presentationdemos.wpf.WriteProtection"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:democommon="clr-namespace:syncfusion.demoscommon.wpf;assembly=syncfusion.demoscommon.wpf"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:numberformat="clr-namespace:System.Globalization;assembly=mscorlib"
xmlns:skin="clr-namespace:Syncfusion.SfSkinManager;assembly=Syncfusion.SfSkinManager.WPF"
xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
d:DesignHeight="200"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid Margin="5,0,0,0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock x:Name="TextBlock2" Grid.Row="2" Grid.ColumnSpan="4"/>
<TextBlock TextWrapping="Wrap" Grid.Row="3" Grid.ColumnSpan="4" TextAlignment="Justify" >
<TextBlock.Text>
Click the button below to view the PowerPoint Presentation generated by Essential Presentation. Please note that you need to have MS PowerPoint Viewer installed, to view the resultant Presentation.
</TextBlock.Text>
</TextBlock>
<TextBlock x:Name="TextBlock3" Grid.Row="4" Grid.ColumnSpan="4"/>
<StackPanel Orientation="Vertical" Grid.Row="5" Height="184" VerticalAlignment="Top" Grid.ColumnSpan="4">
<GroupBox Header="Protect Presentation from writing" HorizontalAlignment="Left" VerticalAlignment="Bottom" Margin="8,5,0,0" Width="335" FontWeight="Bold">
<StackPanel Orientation="Vertical">
<StackPanel Orientation="Horizontal">
<TextBlock Margin="0,7,3,0" HorizontalAlignment="Left" FontWeight="Normal"><Run Text="Source Document"/></TextBlock>
<TextBox x:Name="textBox1" Margin="13,7,3,5" HorizontalAlignment="Left" Width="180" Padding="0,1,0,1" FontWeight="Normal"/>
<Button x:Name="btnBrowse" Click="btnBrowse_Click" VerticalAlignment="Center" FontWeight="Normal" Content=". . ."/>
</StackPanel>
<StackPanel Orientation="Horizontal">
<TextBlock Margin="0,7,3,0" HorizontalAlignment="Left" FontWeight="Normal"><Run Text="Password to Protect"/></TextBlock>
<PasswordBox x:Name="passwordBox1" Margin="0,7,3,5" Padding="0,1,0,1" HorizontalAlignment="Left" Width="201" PasswordChar="*" FontWeight="Normal"/>
</StackPanel>
<Button x:Name="btnencrypt" Click="protect_Click" Margin="0,5,5,0" Padding="20,3,20,3" HorizontalAlignment="Right" Content="Protect" FontWeight="Normal"/>
</StackPanel>
</GroupBox>
</StackPanel>
</Grid>
</democommon:DemoControl>