public static MultiDataTriggerCondition Register(FrameworkElement element, IEnumerable <IDataTriggerConditionProvider> conditionProviders) { MultiDataTriggerCondition condition = new MultiDataTriggerCondition(element, conditionProviders); condition.Register(); return(condition); }
public override IDataTriggerCondition CreateDataTriggerCondition(FrameworkElement element) { return(MultiDataTriggerCondition.Register(element, Conditions.Select(condition => new MultiDataTriggerConditionProvider(condition)).ToArray())); }
public static MultiDataTriggerCondition Register(FrameworkElement element, IEnumerable<IDataTriggerConditionProvider> conditionProviders) { MultiDataTriggerCondition condition = new MultiDataTriggerCondition(element, conditionProviders); condition.Register(); return condition; }