using PDF_Master.ViewModels; using PDF_Master.ViewModels.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageWatermark; using PDF_Master.ViewModels.EditTools.Watermark; using System.Windows.Controls; using System.Windows.Media; namespace PDF_Master.Views.Dialog.HomePageToolsDialogs.HomePageBatchProcessing.HomePageWatermark { /// /// Interaction logic for HomePageWatermarkCreateTextContent /// public partial class HomePageWatermarkCreateTextContent : UserControl { public HomePageWatermarkCreateTextContent() { InitializeComponent(); cusColor.SelectedColorHandler += cusColor_SelectedColor; } private void cusColor_SelectedColor(object sender, Color e) { var data = this.DataContext as HomePageWatermarkCreateTextContentViewModel; if (data != null) { data.SelectedColorChangedCommand?.Execute(e); } } } }