Browse Source

compdfkit(win) - 注释面板填充颜色无效问题

weixiangjie 11 months ago
parent
commit
509690ed1a

+ 4 - 0
Demo/Examples/Compdfkit_Tools/Annotation/PDFAnnotationPanel/PDFAnnotationUI/CPDFShapeUI.xaml.cs

@@ -463,6 +463,10 @@ namespace Compdfkit_Tools.PDFControlUI
 
                     if (squareParam.BgColor!=null)
                     {
+                        FillColorPickerControl.Brush = new SolidColorBrush(Color.FromRgb(
+                           squareParam.BgColor[0],
+                           squareParam.BgColor[1],
+                           squareParam.BgColor[2]));
                         FillColorPickerControl.SetCheckedForColor(Color.FromRgb(
                            squareParam.BgColor[0],
                            squareParam.BgColor[1],