Prechádzať zdrojové kódy

ComPDFKit.Demo(win) - 云朵示意图UI

liuaoran 2 týždňov pred
rodič
commit
798a814950

+ 2 - 1
Demo/Examples/Compdfkit.Controls/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFCloudUI.xaml

@@ -23,7 +23,8 @@
                     <Grid  Height="40" Background="White" >
                         <TextBlock x:Name="TitleTextBlock" Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Title_Cloud}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="16" FontFamily="Microsoft YaHei"></TextBlock>
                     </Grid>
-                </Border> 
+                </Border>
+                <cpdftools:CPDFAnnotationPreviewerControl x:Name="CPDFAnnotationPreviewerControl" Height="100" Margin="16"></cpdftools:CPDFAnnotationPreviewerControl>
                 <StackPanel Name="CloudPanel" Orientation="Vertical">
                     <StackPanel Height="75" Margin="5">
                         <TextBlock Text="{Binding Converter={StaticResource PropertyPanelResourceConverter},ConverterParameter=Property_LineColor}"></TextBlock>

+ 2 - 0
Demo/Examples/Compdfkit.Controls/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFCloudUI.xaml.cs

@@ -55,6 +55,8 @@ namespace ComPDFKit.Controls.PDFControlUI
             CPDFThicknessControl.ThicknessChanged += CPDFThicknessControl_ThicknessChanged;
             CPDFLineShapeControl.LineShapeChanged += CPDFLineShapeControl_LineShapeChanged;
             ctlLineStyle.LineStyleChanged += CtlLineStyle_LineStyleChanged;
+
+            CPDFAnnotationPreviewerControl.DrawCloudPreview();
         }
 
         private void CtlLineStyle_LineStyleChanged(object sender, EventArgs e)