WatermarkCreateTextContent.xaml.cs 892 B

1234567891011121314151617181920212223242526272829
  1. using PDF_Master.ViewModels.EditTools.Watermark;
  2. using PDF_Master.ViewModels.PropertyPanel.AnnotPanel;
  3. using System.Windows.Controls;
  4. using System.Windows.Media;
  5. namespace PDF_Master.Views.EditTools.Watermark
  6. {
  7. /// <summary>
  8. /// Interaction logic for WatermarkCreateTextContent
  9. /// </summary>
  10. public partial class WatermarkCreateTextContent : UserControl
  11. {
  12. public WatermarkCreateTextContent()
  13. {
  14. InitializeComponent();
  15. cusColor.SelectedColorHandler += cusColor_SelectedColor;
  16. }
  17. private void cusColor_SelectedColor(object sender, Color e)
  18. {
  19. var data = this.DataContext as WatermarkCreateTextContentViewModel;
  20. if (data != null)
  21. {
  22. data.SelectedColorChangedCommand?.Execute(e);
  23. }
  24. }
  25. }
  26. }