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