559692 - Include the sample for the documentation “Adding your standard stamps in the toolbar”. - #51
Conversation
| @@ -0,0 +1,107 @@ | |||
| <?xml version="1.0" encoding="utf-8"?> | |||
There was a problem hiding this comment.
Change the sample name as "AddStandardStampInToolbar" in all necessary places
There was a problem hiding this comment.
Changed the sample name as suggested
| <None Include="App.config" /> | ||
| </ItemGroup> | ||
| <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
| <Import Project="packages\Syncfusion.PdfToImageConverter.WPF.29.1.33\build\net462\Syncfusion.PdfToImageConverter.WPF.targets" Condition="Exists('packages\Syncfusion.PdfToImageConverter.WPF.29.1.33\build\net462\Syncfusion.PdfToImageConverter.WPF.targets')" /> |
There was a problem hiding this comment.
Is this required? Check other samples
There was a problem hiding this comment.
No it is not required removed this
| <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" /> | ||
| </startup> | ||
| <runtime> | ||
| <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> |
There was a problem hiding this comment.
Remove this unwanted bindings
There was a problem hiding this comment.
Removed unwanted bindings
| this.WindowState = WindowState.Maximized; | ||
| //Loads the Document | ||
| #if NETFRAMEWORK | ||
| pdfViewer.Load("../../Data/PDF_Succinctly.pdf"); |
There was a problem hiding this comment.
Change the file as F# pdf
There was a problem hiding this comment.
Changed the file name as F#
| //Load the custom image from the local disk. | ||
| System.Windows.Controls.Image image = new System.Windows.Controls.Image(); | ||
| #if NETFRAMEWORK | ||
| image.Source = new BitmapImage(new Uri(@"../../Data/CustomStamp.png", UriKind.RelativeOrAbsolute)); |
There was a problem hiding this comment.
Changed the image
| this.WindowState = WindowState.Maximized; | ||
| //Loads the Document | ||
| #if NETFRAMEWORK | ||
| pdfViewer.Load("../../Data/F#.pdf"); |
There was a problem hiding this comment.
Keep the path in global variable as string path ="../../Data"; and reuse it
| #endif | ||
| } | ||
|
|
||
| private void addStamp_Click(object sender, RoutedEventArgs e) |
There was a problem hiding this comment.
Add summary for the method
Description :