//////////////////////////////////////////////////////////////////////// // // DisconnectAllTriggers // // Call DisconnectOneTrigger for each trigger in the Triggers collection. internal static void DisconnectAllTriggers(FrameworkElement triggersHost) { TriggerCollection triggerCollection = TriggerCollectionField.GetValue(triggersHost); if (triggerCollection != null) { for (int i = 0; i < triggerCollection.Count; i++) { DisconnectOneTrigger(triggersHost, triggerCollection[i]); } } }
// Token: 0x060003F7 RID: 1015 RVA: 0x0000B5A4 File Offset: 0x000097A4 internal static void DisconnectAllTriggers(FrameworkElement triggersHost) { TriggerCollection value = EventTrigger.TriggerCollectionField.GetValue(triggersHost); if (value != null) { for (int i = 0; i < value.Count; i++) { EventTrigger.DisconnectOneTrigger(triggersHost, value[i]); } } }
/////////////////////////////////////////////////////////////////////// // Internal static methods to process event trigger information stored // in attached storage of other objects. // // Called when the FrameworkElement and the tree structure underneath it has been // built up. This is the earliest point we can resolve all the child // node identification that may exist in a Trigger object. // This should be moved to base class if PropertyTrigger support is added. internal static void ProcessTriggerCollection(FrameworkElement triggersHost) { TriggerCollection triggerCollection = TriggerCollectionField.GetValue(triggersHost); if (triggerCollection != null) { // Don't seal the collection, because we allow it to change. We will, // however, seal each of the triggers. for (int i = 0; i < triggerCollection.Count; i++) { ProcessOneTrigger(triggersHost, triggerCollection[i]); } } }