97 references to BindingFlags
PresentationFramework (97)
src\Framework\System\Windows\Data\Binding.cs (38)
276
return TestFlag(
BindingFlags
.ValidatesOnExceptions);
280
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnExceptions);
284
ChangeFlag(
BindingFlags
.ValidatesOnExceptions, value);
295
return TestFlag(
BindingFlags
.ValidatesOnDataErrors);
299
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnDataErrors);
303
ChangeFlag(
BindingFlags
.ValidatesOnDataErrors, value);
314
return TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors);
318
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors);
322
ChangeFlag(
BindingFlags
.ValidatesOnNotifyDataErrors, value);
338
ClearFlag(
BindingFlags
.PathGeneratedInternally);
360
return _ppath != null && !TestFlag(
BindingFlags
.PathGeneratedInternally);
377
switch (GetFlagsWithinMask(
BindingFlags
.PropagationMask))
379
case
BindingFlags
.OneWay: return BindingMode.OneWay;
380
case
BindingFlags
.TwoWay: return BindingMode.TwoWay;
381
case
BindingFlags
.OneWayToSource: return BindingMode.OneWayToSource;
382
case
BindingFlags
.OneTime: return BindingMode.OneTime;
383
case
BindingFlags
.PropDefault: return BindingMode.Default;
392
BindingFlags
flags = FlagsFrom(value);
393
if (flags ==
BindingFlags
.IllegalInput)
396
ChangeFlagsWithinMask(
BindingFlags
.PropagationMask, flags);
406
switch (GetFlagsWithinMask(
BindingFlags
.UpdateMask))
408
case
BindingFlags
.UpdateOnPropertyChanged: return UpdateSourceTrigger.PropertyChanged;
409
case
BindingFlags
.UpdateOnLostFocus: return UpdateSourceTrigger.LostFocus;
410
case
BindingFlags
.UpdateExplicitly: return UpdateSourceTrigger.Explicit;
411
case
BindingFlags
.UpdateDefault: return UpdateSourceTrigger.Default;
420
BindingFlags
flags = FlagsFrom(value);
421
if (flags ==
BindingFlags
.IllegalInput)
424
ChangeFlagsWithinMask(
BindingFlags
.UpdateMask, flags);
434
return TestFlag(
BindingFlags
.NotifyOnSourceUpdated);
438
bool currentValue = TestFlag(
BindingFlags
.NotifyOnSourceUpdated);
442
ChangeFlag(
BindingFlags
.NotifyOnSourceUpdated, value);
454
return TestFlag(
BindingFlags
.NotifyOnTargetUpdated);
458
bool currentValue = TestFlag(
BindingFlags
.NotifyOnTargetUpdated);
462
ChangeFlag(
BindingFlags
.NotifyOnTargetUpdated, value);
473
return TestFlag(
BindingFlags
.NotifyOnValidationError);
477
bool currentValue = TestFlag(
BindingFlags
.NotifyOnValidationError);
481
ChangeFlag(
BindingFlags
.NotifyOnValidationError, value);
715
SetFlag(
BindingFlags
.PathGeneratedInternally);
src\Framework\System\Windows\Data\BindingBase.cs (28)
300
internal bool TestFlag(
BindingFlags
flag)
306
internal void SetFlag(
BindingFlags
flag)
312
internal void ClearFlag(
BindingFlags
flag)
318
internal void ChangeFlag(
BindingFlags
flag, bool value)
327
internal
BindingFlags
GetFlagsWithinMask(
BindingFlags
mask)
333
internal void ChangeFlagsWithinMask(
BindingFlags
mask,
BindingFlags
flags)
339
internal static
BindingFlags
FlagsFrom(BindingMode bindingMode)
343
case BindingMode.OneWay: return
BindingFlags
.OneWay;
344
case BindingMode.TwoWay: return
BindingFlags
.TwoWay;
345
case BindingMode.OneWayToSource: return
BindingFlags
.OneWayToSource;
346
case BindingMode.OneTime: return
BindingFlags
.OneTime;
347
case BindingMode.Default: return
BindingFlags
.PropDefault;
350
return
BindingFlags
.IllegalInput;
354
internal static
BindingFlags
FlagsFrom(UpdateSourceTrigger updateSourceTrigger)
358
case UpdateSourceTrigger.Default: return
BindingFlags
.UpdateDefault;
359
case UpdateSourceTrigger.PropertyChanged: return
BindingFlags
.UpdateOnPropertyChanged;
360
case UpdateSourceTrigger.LostFocus: return
BindingFlags
.UpdateOnLostFocus;
361
case UpdateSourceTrigger.Explicit: return
BindingFlags
.UpdateExplicitly;
364
return
BindingFlags
.IllegalInput;
377
internal
BindingFlags
Flags { get { return _flags; } }
434
if (TestFlag(
BindingFlags
.ValidatesOnExceptions) && type == typeof(System.Windows.Controls.ExceptionValidationRule))
437
if (TestFlag(
BindingFlags
.ValidatesOnDataErrors) && type == typeof(System.Windows.Controls.DataErrorValidationRule))
440
if (TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors) && type == typeof(System.Windows.Controls.NotifyDataErrorValidationRule))
483
clone.ChangeFlagsWithinMask(
BindingFlags
.PropagationMask, FlagsFrom(mode));
498
BindingFlags
_flags =
BindingFlags
.Default;
src\Framework\System\Windows\Data\MultiBinding.cs (31)
111
switch (GetFlagsWithinMask(
BindingFlags
.PropagationMask))
113
case
BindingFlags
.OneWay: return BindingMode.OneWay;
114
case
BindingFlags
.TwoWay: return BindingMode.TwoWay;
115
case
BindingFlags
.OneWayToSource: return BindingMode.OneWayToSource;
116
case
BindingFlags
.OneTime: return BindingMode.OneTime;
117
case
BindingFlags
.PropDefault: return BindingMode.Default;
125
ChangeFlagsWithinMask(
BindingFlags
.PropagationMask, FlagsFrom(value));
135
switch (GetFlagsWithinMask(
BindingFlags
.UpdateMask))
137
case
BindingFlags
.UpdateOnPropertyChanged: return UpdateSourceTrigger.PropertyChanged;
138
case
BindingFlags
.UpdateOnLostFocus: return UpdateSourceTrigger.LostFocus;
139
case
BindingFlags
.UpdateExplicitly: return UpdateSourceTrigger.Explicit;
140
case
BindingFlags
.UpdateDefault: return UpdateSourceTrigger.Default;
148
ChangeFlagsWithinMask(
BindingFlags
.UpdateMask, FlagsFrom(value));
159
return TestFlag(
BindingFlags
.NotifyOnSourceUpdated);
163
bool currentValue = TestFlag(
BindingFlags
.NotifyOnSourceUpdated);
167
ChangeFlag(
BindingFlags
.NotifyOnSourceUpdated, value);
179
return TestFlag(
BindingFlags
.NotifyOnTargetUpdated);
183
bool currentValue = TestFlag(
BindingFlags
.NotifyOnTargetUpdated);
187
ChangeFlag(
BindingFlags
.NotifyOnTargetUpdated, value);
198
return TestFlag(
BindingFlags
.NotifyOnValidationError);
202
bool currentValue = TestFlag(
BindingFlags
.NotifyOnValidationError);
206
ChangeFlag(
BindingFlags
.NotifyOnValidationError, value);
288
return TestFlag(
BindingFlags
.ValidatesOnExceptions);
292
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnExceptions);
296
ChangeFlag(
BindingFlags
.ValidatesOnExceptions, value);
307
return TestFlag(
BindingFlags
.ValidatesOnDataErrors);
311
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnDataErrors);
315
ChangeFlag(
BindingFlags
.ValidatesOnDataErrors, value);
326
return TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors);
330
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors);
334
ChangeFlag(
BindingFlags
.ValidatesOnNotifyDataErrors, value);