HomePageWatermarkCreateTextContent.xaml.cs 1.0 KB

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