Skip to content

Commit a8f3be7

Browse files
Comments pane sample
1 parent e33a9e6 commit a8f3be7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
<Window x:Class="ExpandCommentsPane.MainWindow"
1+
<Window xmlns:PdfViewer="clr-namespace:Syncfusion.Windows.PdfViewer;assembly=Syncfusion.PdfViewer.WPF"
2+
x:Class="ExpandCommentsPane.MainWindow"
23
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
34
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
45
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
56
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
67
xmlns:local="clr-namespace:ExpandCommentsPane"
78
mc:Ignorable="d"
89
Title="MainWindow" Height="450" Width="800">
9-
<Grid x:Name="HomeGrid">
10-
10+
<Grid>
11+
<PdfViewer:PdfViewerControl Name ="pdfViewer"/>
1112
</Grid>
1213
</Window>

Annotations/Comments/ExpandCommentsPane/MainWindow.xaml.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ public partial class MainWindow : Window
2424
public MainWindow()
2525
{
2626
InitializeComponent();
27-
PdfViewerControl pdfViewer = new PdfViewerControl();
28-
HomeGrid.Children.Add(pdfViewer);
2927
pdfViewer.Load("../../Data/Annotations.pdf");
3028
pdfViewer.CommentSettings.IsExpanded = true;
3129
}

0 commit comments

Comments
 (0)