File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Annotations/Comments/ExpandCommentsPane Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- <Window x : Class =" ExpandCommentsPane.MainWindow"
1
+ <Window xmlns : PdfViewer =" clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF"
2
+ x : Class =" ExpandCommentsPane.MainWindow"
2
3
xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3
4
xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
4
5
xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
5
6
xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
6
7
xmlns : local =" clr-namespace:ExpandCommentsPane"
7
8
mc : Ignorable =" d"
8
9
Title =" MainWindow" Height =" 450" Width =" 800" >
9
- <Grid x : Name = " HomeGrid " >
10
-
10
+ <Grid >
11
+ < PdfViewer : PdfViewerControl Name = " pdfViewer " />
11
12
</Grid >
12
13
</Window >
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ public partial class MainWindow : Window
24
24
public MainWindow ( )
25
25
{
26
26
InitializeComponent ( ) ;
27
- PdfViewerControl pdfViewer = new PdfViewerControl ( ) ;
28
- HomeGrid . Children . Add ( pdfViewer ) ;
29
27
pdfViewer . Load ( "../../Data/Annotations.pdf" ) ;
30
28
pdfViewer . CommentSettings . IsExpanded = true ;
31
29
}
You can’t perform that action at this time.
0 commit comments