示例#1
0
        public static MultiDataTriggerCondition Register(FrameworkElement element, IEnumerable <IDataTriggerConditionProvider> conditionProviders)
        {
            MultiDataTriggerCondition condition = new MultiDataTriggerCondition(element, conditionProviders);

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