private static void AttachAction(System.Windows.DependencyObject dependencyObject, TriggerBase trigger, TriggerAction action)
 {
     trigger.Actions.Add(action);
     trigger.Attach(dependencyObject);
 }