浏览代码

颜色按初始化-修复

liyijie 1 年之前
父节点
当前提交
f0af4f27dc
共有 1 个文件被更改,包括 1 次插入0 次删除
  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)
                     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.ListColor.SelectedItem = item;
+                        control.SelectedColor = colorItem;
                         //control.ElcustomColor.Fill = new SolidColorBrush(Colors.Transparent);
                         //control.ElcustomColor.Fill = new SolidColorBrush(Colors.Transparent);
                         isFoundListItem = true;
                         isFoundListItem = true;
                         break;
                         break;