97 references to BindingFlags
PresentationFramework (97)
System\Windows\Data\Binding.cs (38)
262return TestFlag(BindingFlags.ValidatesOnExceptions); 266bool currentValue = TestFlag(BindingFlags.ValidatesOnExceptions); 270ChangeFlag(BindingFlags.ValidatesOnExceptions, value); 281return TestFlag(BindingFlags.ValidatesOnDataErrors); 285bool currentValue = TestFlag(BindingFlags.ValidatesOnDataErrors); 289ChangeFlag(BindingFlags.ValidatesOnDataErrors, value); 300return TestFlag(BindingFlags.ValidatesOnNotifyDataErrors); 304bool currentValue = TestFlag(BindingFlags.ValidatesOnNotifyDataErrors); 308ChangeFlag(BindingFlags.ValidatesOnNotifyDataErrors, value); 324ClearFlag(BindingFlags.PathGeneratedInternally); 347return _ppath != null && !TestFlag(BindingFlags.PathGeneratedInternally); 364switch (GetFlagsWithinMask(BindingFlags.PropagationMask)) 366case BindingFlags.OneWay: return BindingMode.OneWay; 367case BindingFlags.TwoWay: return BindingMode.TwoWay; 368case BindingFlags.OneWayToSource: return BindingMode.OneWayToSource; 369case BindingFlags.OneTime: return BindingMode.OneTime; 370case BindingFlags.PropDefault: return BindingMode.Default; 379BindingFlags flags = FlagsFrom(value); 380if (flags == BindingFlags.IllegalInput) 383ChangeFlagsWithinMask(BindingFlags.PropagationMask, flags); 393switch (GetFlagsWithinMask(BindingFlags.UpdateMask)) 395case BindingFlags.UpdateOnPropertyChanged: return UpdateSourceTrigger.PropertyChanged; 396case BindingFlags.UpdateOnLostFocus: return UpdateSourceTrigger.LostFocus; 397case BindingFlags.UpdateExplicitly: return UpdateSourceTrigger.Explicit; 398case BindingFlags.UpdateDefault: return UpdateSourceTrigger.Default; 407BindingFlags flags = FlagsFrom(value); 408if (flags == BindingFlags.IllegalInput) 411ChangeFlagsWithinMask(BindingFlags.UpdateMask, flags); 421return TestFlag(BindingFlags.NotifyOnSourceUpdated); 425bool currentValue = TestFlag(BindingFlags.NotifyOnSourceUpdated); 429ChangeFlag(BindingFlags.NotifyOnSourceUpdated, value); 441return TestFlag(BindingFlags.NotifyOnTargetUpdated); 445bool currentValue = TestFlag(BindingFlags.NotifyOnTargetUpdated); 449ChangeFlag(BindingFlags.NotifyOnTargetUpdated, value); 460return TestFlag(BindingFlags.NotifyOnValidationError); 464bool currentValue = TestFlag(BindingFlags.NotifyOnValidationError); 468ChangeFlag(BindingFlags.NotifyOnValidationError, value); 702SetFlag(BindingFlags.PathGeneratedInternally);
System\Windows\Data\BindingBase.cs (28)
295internal bool TestFlag(BindingFlags flag) 301internal void SetFlag(BindingFlags flag) 307internal void ClearFlag(BindingFlags flag) 313internal void ChangeFlag(BindingFlags flag, bool value) 322internal BindingFlags GetFlagsWithinMask(BindingFlags mask) 328internal void ChangeFlagsWithinMask(BindingFlags mask, BindingFlags flags) 334internal static BindingFlags FlagsFrom(BindingMode bindingMode) 338case BindingMode.OneWay: return BindingFlags.OneWay; 339case BindingMode.TwoWay: return BindingFlags.TwoWay; 340case BindingMode.OneWayToSource: return BindingFlags.OneWayToSource; 341case BindingMode.OneTime: return BindingFlags.OneTime; 342case BindingMode.Default: return BindingFlags.PropDefault; 345return BindingFlags.IllegalInput; 349internal static BindingFlags FlagsFrom(UpdateSourceTrigger updateSourceTrigger) 353case UpdateSourceTrigger.Default: return BindingFlags.UpdateDefault; 354case UpdateSourceTrigger.PropertyChanged: return BindingFlags.UpdateOnPropertyChanged; 355case UpdateSourceTrigger.LostFocus: return BindingFlags.UpdateOnLostFocus; 356case UpdateSourceTrigger.Explicit: return BindingFlags.UpdateExplicitly; 359return BindingFlags.IllegalInput; 372internal BindingFlags Flags { get { return _flags; } } 429if (TestFlag(BindingFlags.ValidatesOnExceptions) && type == typeof(System.Windows.Controls.ExceptionValidationRule)) 432if (TestFlag(BindingFlags.ValidatesOnDataErrors) && type == typeof(System.Windows.Controls.DataErrorValidationRule)) 435if (TestFlag(BindingFlags.ValidatesOnNotifyDataErrors) && type == typeof(System.Windows.Controls.NotifyDataErrorValidationRule)) 478clone.ChangeFlagsWithinMask(BindingFlags.PropagationMask, FlagsFrom(mode)); 493BindingFlags _flags = BindingFlags.Default;
System\Windows\Data\MultiBinding.cs (31)
102switch (GetFlagsWithinMask(BindingFlags.PropagationMask)) 104case BindingFlags.OneWay: return BindingMode.OneWay; 105case BindingFlags.TwoWay: return BindingMode.TwoWay; 106case BindingFlags.OneWayToSource: return BindingMode.OneWayToSource; 107case BindingFlags.OneTime: return BindingMode.OneTime; 108case BindingFlags.PropDefault: return BindingMode.Default; 116ChangeFlagsWithinMask(BindingFlags.PropagationMask, FlagsFrom(value)); 126switch (GetFlagsWithinMask(BindingFlags.UpdateMask)) 128case BindingFlags.UpdateOnPropertyChanged: return UpdateSourceTrigger.PropertyChanged; 129case BindingFlags.UpdateOnLostFocus: return UpdateSourceTrigger.LostFocus; 130case BindingFlags.UpdateExplicitly: return UpdateSourceTrigger.Explicit; 131case BindingFlags.UpdateDefault: return UpdateSourceTrigger.Default; 139ChangeFlagsWithinMask(BindingFlags.UpdateMask, FlagsFrom(value)); 150return TestFlag(BindingFlags.NotifyOnSourceUpdated); 154bool currentValue = TestFlag(BindingFlags.NotifyOnSourceUpdated); 158ChangeFlag(BindingFlags.NotifyOnSourceUpdated, value); 170return TestFlag(BindingFlags.NotifyOnTargetUpdated); 174bool currentValue = TestFlag(BindingFlags.NotifyOnTargetUpdated); 178ChangeFlag(BindingFlags.NotifyOnTargetUpdated, value); 189return TestFlag(BindingFlags.NotifyOnValidationError); 193bool currentValue = TestFlag(BindingFlags.NotifyOnValidationError); 197ChangeFlag(BindingFlags.NotifyOnValidationError, value); 278return TestFlag(BindingFlags.ValidatesOnExceptions); 282bool currentValue = TestFlag(BindingFlags.ValidatesOnExceptions); 286ChangeFlag(BindingFlags.ValidatesOnExceptions, value); 297return TestFlag(BindingFlags.ValidatesOnDataErrors); 301bool currentValue = TestFlag(BindingFlags.ValidatesOnDataErrors); 305ChangeFlag(BindingFlags.ValidatesOnDataErrors, value); 316return TestFlag(BindingFlags.ValidatesOnNotifyDataErrors); 320bool currentValue = TestFlag(BindingFlags.ValidatesOnNotifyDataErrors); 324ChangeFlag(BindingFlags.ValidatesOnNotifyDataErrors, value);