|
@@ -355,8 +355,30 @@ namespace PDF_Master.CustomControl.CompositeControl
|
|
|
}
|
|
|
|
|
|
return isSelectList;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
+ private void Grid_MouseDown(object sender, MouseButtonEventArgs e)
|
|
|
+ {
|
|
|
+
|
|
|
+ if (ElcustomColor.Fill == null)
|
|
|
+ {
|
|
|
+ ElcustomColor.Fill = new SolidColorBrush(Colors.Transparent);
|
|
|
+ }
|
|
|
+ Color ecolor=new Color();
|
|
|
+ if (defaultColor.Visibility == Visibility.Visible)
|
|
|
+ {
|
|
|
+ ecolor = (defaultColor.Fill as SolidColorBrush).Color;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ ecolor = (ElcustomColor.Fill as SolidColorBrush).Color;
|
|
|
+ }
|
|
|
+
|
|
|
+ IsExistForContainer((ElcustomColor.Fill as SolidColorBrush).Color);
|
|
|
+ SelectedColorHandler?.Invoke(this, ecolor);
|
|
|
+ ElcustomColor.Fill = new SolidColorBrush(ecolor);
|
|
|
+ SelectedColor = ecolor;
|
|
|
+ SelectedColorInvoke?.Invoke(ecolor, null);
|
|
|
+ DefaultColorInvoke?.Invoke(ecolor, null);
|
|
|
+ }
|
|
|
}
|
|
|
}
|