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