Skip to content

Commit a1600f0

Browse files
committed
feedbacks addressed
1 parent 2bcf1f7 commit a1600f0

File tree

3 files changed

+72
-9
lines changed

3 files changed

+72
-9
lines changed

Signature/Validate-Signature-FormField/CheckPDFSignatureformFieldsSigned.csproj

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<Project Sdk="Microsoft.NET.Sdk.WindowsDesktop">
2+
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
34
<PropertyGroup>
45
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
56
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
67
<ProjectGuid>{AD69FFC8-4BCA-4001-8F27-155F5DFE7179}</ProjectGuid>
78
<OutputType>WinExe</OutputType>
89
<RootNamespace>CheckPDFSignatureformFieldsSigned</RootNamespace>
910
<AssemblyName>CheckPDFSignatureformFieldsSigned</AssemblyName>
10-
<TargetFramework>net48</TargetFramework>
11+
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1112
<FileAlignment>512</FileAlignment>
1213
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1314
<WarningLevel>4</WarningLevel>
1415
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
1516
<Deterministic>true</Deterministic>
16-
<LangVersion>latest</LangVersion>
17-
<UseWPF>true</UseWPF>
17+
<TargetFrameworkProfile />
1818
</PropertyGroup>
1919
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2020
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -37,8 +37,65 @@
3737
</PropertyGroup>
3838
<ItemGroup>
3939
<PackageReference Include="Syncfusion.PdfViewer.WPF" Version="*" />
40+
<Reference Include="System" />
41+
<Reference Include="System.Data" />
42+
<Reference Include="System.Drawing" />
43+
<Reference Include="System.Xml" />
44+
<Reference Include="Microsoft.CSharp" />
45+
<Reference Include="System.Core" />
46+
<Reference Include="System.Xml.Linq" />
47+
<Reference Include="System.Data.DataSetExtensions" />
48+
<Reference Include="System.Net.Http" />
49+
<Reference Include="System.Xaml">
50+
<RequiredTargetFramework>4.0</RequiredTargetFramework>
51+
</Reference>
52+
<Reference Include="WindowsBase" />
53+
<Reference Include="PresentationCore" />
54+
<Reference Include="PresentationFramework" />
55+
</ItemGroup>
56+
<ItemGroup>
57+
<ApplicationDefinition Include="App.xaml">
58+
<Generator>MSBuild:Compile</Generator>
59+
<SubType>Designer</SubType>
60+
</ApplicationDefinition>
61+
<Page Include="MainWindow.xaml">
62+
<Generator>MSBuild:Compile</Generator>
63+
<SubType>Designer</SubType>
64+
</Page>
65+
<Compile Include="App.xaml.cs">
66+
<DependentUpon>App.xaml</DependentUpon>
67+
<SubType>Code</SubType>
68+
</Compile>
69+
<Compile Include="MainWindow.xaml.cs">
70+
<DependentUpon>MainWindow.xaml</DependentUpon>
71+
<SubType>Code</SubType>
72+
</Compile>
73+
</ItemGroup>
74+
<ItemGroup>
75+
<Compile Include="Properties\AssemblyInfo.cs">
76+
<SubType>Code</SubType>
77+
</Compile>
78+
<Compile Include="Properties\Resources.Designer.cs">
79+
<AutoGen>True</AutoGen>
80+
<DesignTime>True</DesignTime>
81+
<DependentUpon>Resources.resx</DependentUpon>
82+
</Compile>
83+
<Compile Include="Properties\Settings.Designer.cs">
84+
<AutoGen>True</AutoGen>
85+
<DependentUpon>Settings.settings</DependentUpon>
86+
<DesignTimeSharedInput>True</DesignTimeSharedInput>
87+
</Compile>
88+
<EmbeddedResource Include="Properties\Resources.resx">
89+
<Generator>ResXFileCodeGenerator</Generator>
90+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
91+
</EmbeddedResource>
92+
<None Include="Properties\Settings.settings">
93+
<Generator>SettingsSingleFileGenerator</Generator>
94+
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
95+
</None>
4096
</ItemGroup>
4197
<ItemGroup>
4298
<None Include="App.config" />
4399
</ItemGroup>
100+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
44101
</Project>

Signature/Validate-Signature-FormField/MainWindow.xaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,15 @@
99
Title="MainWindow" WindowState="Maximized">
1010
<Grid>
1111
<Grid.RowDefinitions>
12-
<RowDefinition Height="80" />
12+
<RowDefinition Height="50" />
1313
<RowDefinition Height="*" />
1414
</Grid.RowDefinitions>
1515
<PdfViewer:PdfViewerControl
1616
x:Name="pdfViewer"
1717
Grid.Row="1"/>
18-
<StackPanel Orientation="Horizontal" Margin="5">
18+
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="5" Grid.Row="0">
1919
<Button x:Name="validateSignature"
20-
Height="50"
21-
Width="80"
20+
Width="60"
2221
Content="Validate"
2322
Margin="5"
2423
Click="validateSignature_Click"/>

Signature/Validate-Signature-FormField/MainWindow.xaml.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,17 @@ namespace CheckPDFSignatureformFieldsSigned
99
/// </summary>
1010
public partial class MainWindow : Window
1111
{
12+
string filepath;
1213
public MainWindow()
1314
{
15+
#if NETCOREAPP
16+
17+
filepath = @"../../../Data/Doc_with_sign.pdf";
18+
#else
19+
filepath = @"../../Data/Doc_with_sign.pdf";
20+
#endif
1421
InitializeComponent();
15-
pdfViewer.Load(@"../../../Data/Doc_with_sign.pdf");
22+
pdfViewer.Load(filepath);
1623
}
1724

1825
private void validateSignature_Click(object sender, RoutedEventArgs e)

0 commit comments

Comments
 (0)