|
| 1 | +<Window xmlns:cc="clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF" x:Class="User_BasedFormFieldVisibility.MainWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:local="clr-namespace:User_BasedFormFieldVisibility" xmlns:syncfusion="http://schemas.syncfusion.com/wpf" |
| 7 | + mc:Ignorable="d" |
| 8 | + Title="MainWindow" Height="450" Width="800"> |
| 9 | + <Window.DataContext> |
| 10 | + <local:EsigningPdfFormsViewModel/> |
| 11 | + </Window.DataContext> |
| 12 | + <Grid> |
| 13 | + <Grid.RowDefinitions> |
| 14 | + <RowDefinition Height="50" /> |
| 15 | + <RowDefinition Height="*" /> |
| 16 | + </Grid.RowDefinitions> |
| 17 | + <DockPanel> |
| 18 | + <Grid> |
| 19 | + <Grid.DataContext> |
| 20 | + <local:EsigningPdfFormsViewModel/> |
| 21 | + </Grid.DataContext> |
| 22 | + <Grid.ColumnDefinitions> |
| 23 | + <ColumnDefinition Width="6*" /> |
| 24 | + <ColumnDefinition Width="2*" /> |
| 25 | + </Grid.ColumnDefinitions> |
| 26 | + <syncfusion:ComboBoxAdv x:Name="comboBox" Grid.Row="0" Grid.Column="0" Height="38" Width="220" Margin="10,5,0,5" HorizontalAlignment="Left" VerticalAlignment="Top" ItemsSource="{Binding Employees}" SelectedIndex="0" SelectionChanged="ComboBoxAdv_SelectionChanged"> |
| 27 | + <syncfusion:ComboBoxAdv.ItemTemplate> |
| 28 | + <DataTemplate> |
| 29 | + <Grid> |
| 30 | + <Grid.ColumnDefinitions> |
| 31 | + <ColumnDefinition Width="45"/> |
| 32 | + <ColumnDefinition Width="*"/> |
| 33 | + </Grid.ColumnDefinitions> |
| 34 | + <Border BorderBrush="White" BorderThickness="1" Background="Transparent" Width="32" Height="32" HorizontalAlignment="Center" VerticalAlignment="Center"> |
| 35 | + <Border.CornerRadius> |
| 36 | + <CornerRadius TopLeft="16" TopRight="16" BottomLeft="16" BottomRight="16"/> |
| 37 | + </Border.CornerRadius> |
| 38 | + <Image Source="{Binding ProfilePicture}" Stretch="Fill" Width="30" Height="30" /> |
| 39 | + </Border> |
| 40 | + <Grid Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" > |
| 41 | + <Grid.RowDefinitions> |
| 42 | + <RowDefinition Height="*"></RowDefinition> |
| 43 | + <RowDefinition Height="*"></RowDefinition> |
| 44 | + </Grid.RowDefinitions> |
| 45 | + <TextBlock Text="{Binding Name}" FontSize="13" Grid.Row="0"/> |
| 46 | + <TextBlock Text="{Binding Mail}" FontSize="11" Grid.Row="1"/> |
| 47 | + </Grid> |
| 48 | + </Grid> |
| 49 | + </DataTemplate> |
| 50 | + </syncfusion:ComboBoxAdv.ItemTemplate> |
| 51 | + </syncfusion:ComboBoxAdv> |
| 52 | + <syncfusion:ButtonAdv x:Name="buttonAdv" Label="Finish Signing" IconHeight="0" IconWidth="0" Grid.Column="1" Margin="0,0,10,0" Width="150" Height="40" BorderThickness="3" CornerRadius="5" HorizontalAlignment="Right" VerticalAlignment="Center" Click="button_Click" /> |
| 53 | + </Grid> |
| 54 | + </DockPanel> |
| 55 | + <cc:PdfViewerControl |
| 56 | + x:Name="pdfviewer" |
| 57 | + Grid.Row="1" |
| 58 | + Margin="8,0,8,8" |
| 59 | + AllowDrop="True" |
| 60 | + BorderThickness="1" |
| 61 | + WarnBeforeClose="False" |
| 62 | + ItemSource="{Binding DocumentStream}" |
| 63 | + ShowToolbar="False" |
| 64 | + DocumentLoaded ="pdfviewer_DocumentLoaded" |
| 65 | + ZoomMode="FitPage"> |
| 66 | + </cc:PdfViewerControl> |
| 67 | + </Grid> |
| 68 | +</Window> |
0 commit comments