using Microsoft.Xaml.Behaviors; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; namespace PDF_Office.Helper { public class SetterAction : TriggerAction { public SetterAction() { Setters = new List(); } public List Setters { get; set; } protected override void Invoke(object parameter) { foreach (var item in Setters) { AssociatedObject.SetValue(item.Property, item.Value); } } } }