Browse Source

颜色按初始化-修复

liyijie 1 year ago
parent
commit
f0af4f27dc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      PDF Office/CustomControl/CompositeControl/ColorContent.xaml.cs

+ 1 - 0
PDF Office/CustomControl/CompositeControl/ColorContent.xaml.cs

@@ -165,6 +165,7 @@ namespace PDF_Master.CustomControl.CompositeControl
                     if (colorItem.A == co.Color.A && colorItem.G == co.Color.G && colorItem.B == co.Color.B && colorItem.R == co.Color.R)
                     {
                         control.ListColor.SelectedItem = item;
+                        control.SelectedColor = colorItem;
                         //control.ElcustomColor.Fill = new SolidColorBrush(Colors.Transparent);
                         isFoundListItem = true;
                         break;