97 references to BindingFlags
PresentationFramework (97)
System\Windows\Data\Binding.cs (38)
270
return TestFlag(
BindingFlags
.ValidatesOnExceptions);
274
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnExceptions);
278
ChangeFlag(
BindingFlags
.ValidatesOnExceptions, value);
289
return TestFlag(
BindingFlags
.ValidatesOnDataErrors);
293
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnDataErrors);
297
ChangeFlag(
BindingFlags
.ValidatesOnDataErrors, value);
308
return TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors);
312
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors);
316
ChangeFlag(
BindingFlags
.ValidatesOnNotifyDataErrors, value);
332
ClearFlag(
BindingFlags
.PathGeneratedInternally);
355
return _ppath != null && !TestFlag(
BindingFlags
.PathGeneratedInternally);
372
switch (GetFlagsWithinMask(
BindingFlags
.PropagationMask))
374
case
BindingFlags
.OneWay: return BindingMode.OneWay;
375
case
BindingFlags
.TwoWay: return BindingMode.TwoWay;
376
case
BindingFlags
.OneWayToSource: return BindingMode.OneWayToSource;
377
case
BindingFlags
.OneTime: return BindingMode.OneTime;
378
case
BindingFlags
.PropDefault: return BindingMode.Default;
387
BindingFlags
flags = FlagsFrom(value);
388
if (flags ==
BindingFlags
.IllegalInput)
391
ChangeFlagsWithinMask(
BindingFlags
.PropagationMask, flags);
401
switch (GetFlagsWithinMask(
BindingFlags
.UpdateMask))
403
case
BindingFlags
.UpdateOnPropertyChanged: return UpdateSourceTrigger.PropertyChanged;
404
case
BindingFlags
.UpdateOnLostFocus: return UpdateSourceTrigger.LostFocus;
405
case
BindingFlags
.UpdateExplicitly: return UpdateSourceTrigger.Explicit;
406
case
BindingFlags
.UpdateDefault: return UpdateSourceTrigger.Default;
415
BindingFlags
flags = FlagsFrom(value);
416
if (flags ==
BindingFlags
.IllegalInput)
419
ChangeFlagsWithinMask(
BindingFlags
.UpdateMask, flags);
429
return TestFlag(
BindingFlags
.NotifyOnSourceUpdated);
433
bool currentValue = TestFlag(
BindingFlags
.NotifyOnSourceUpdated);
437
ChangeFlag(
BindingFlags
.NotifyOnSourceUpdated, value);
449
return TestFlag(
BindingFlags
.NotifyOnTargetUpdated);
453
bool currentValue = TestFlag(
BindingFlags
.NotifyOnTargetUpdated);
457
ChangeFlag(
BindingFlags
.NotifyOnTargetUpdated, value);
468
return TestFlag(
BindingFlags
.NotifyOnValidationError);
472
bool currentValue = TestFlag(
BindingFlags
.NotifyOnValidationError);
476
ChangeFlag(
BindingFlags
.NotifyOnValidationError, value);
710
SetFlag(
BindingFlags
.PathGeneratedInternally);
System\Windows\Data\BindingBase.cs (28)
297
internal bool TestFlag(
BindingFlags
flag)
303
internal void SetFlag(
BindingFlags
flag)
309
internal void ClearFlag(
BindingFlags
flag)
315
internal void ChangeFlag(
BindingFlags
flag, bool value)
324
internal
BindingFlags
GetFlagsWithinMask(
BindingFlags
mask)
330
internal void ChangeFlagsWithinMask(
BindingFlags
mask,
BindingFlags
flags)
336
internal static
BindingFlags
FlagsFrom(BindingMode bindingMode)
340
case BindingMode.OneWay: return
BindingFlags
.OneWay;
341
case BindingMode.TwoWay: return
BindingFlags
.TwoWay;
342
case BindingMode.OneWayToSource: return
BindingFlags
.OneWayToSource;
343
case BindingMode.OneTime: return
BindingFlags
.OneTime;
344
case BindingMode.Default: return
BindingFlags
.PropDefault;
347
return
BindingFlags
.IllegalInput;
351
internal static
BindingFlags
FlagsFrom(UpdateSourceTrigger updateSourceTrigger)
355
case UpdateSourceTrigger.Default: return
BindingFlags
.UpdateDefault;
356
case UpdateSourceTrigger.PropertyChanged: return
BindingFlags
.UpdateOnPropertyChanged;
357
case UpdateSourceTrigger.LostFocus: return
BindingFlags
.UpdateOnLostFocus;
358
case UpdateSourceTrigger.Explicit: return
BindingFlags
.UpdateExplicitly;
361
return
BindingFlags
.IllegalInput;
374
internal
BindingFlags
Flags { get { return _flags; } }
431
if (TestFlag(
BindingFlags
.ValidatesOnExceptions) && type == typeof(System.Windows.Controls.ExceptionValidationRule))
434
if (TestFlag(
BindingFlags
.ValidatesOnDataErrors) && type == typeof(System.Windows.Controls.DataErrorValidationRule))
437
if (TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors) && type == typeof(System.Windows.Controls.NotifyDataErrorValidationRule))
480
clone.ChangeFlagsWithinMask(
BindingFlags
.PropagationMask, FlagsFrom(mode));
495
BindingFlags
_flags =
BindingFlags
.Default;
System\Windows\Data\MultiBinding.cs (31)
107
switch (GetFlagsWithinMask(
BindingFlags
.PropagationMask))
109
case
BindingFlags
.OneWay: return BindingMode.OneWay;
110
case
BindingFlags
.TwoWay: return BindingMode.TwoWay;
111
case
BindingFlags
.OneWayToSource: return BindingMode.OneWayToSource;
112
case
BindingFlags
.OneTime: return BindingMode.OneTime;
113
case
BindingFlags
.PropDefault: return BindingMode.Default;
121
ChangeFlagsWithinMask(
BindingFlags
.PropagationMask, FlagsFrom(value));
131
switch (GetFlagsWithinMask(
BindingFlags
.UpdateMask))
133
case
BindingFlags
.UpdateOnPropertyChanged: return UpdateSourceTrigger.PropertyChanged;
134
case
BindingFlags
.UpdateOnLostFocus: return UpdateSourceTrigger.LostFocus;
135
case
BindingFlags
.UpdateExplicitly: return UpdateSourceTrigger.Explicit;
136
case
BindingFlags
.UpdateDefault: return UpdateSourceTrigger.Default;
144
ChangeFlagsWithinMask(
BindingFlags
.UpdateMask, FlagsFrom(value));
155
return TestFlag(
BindingFlags
.NotifyOnSourceUpdated);
159
bool currentValue = TestFlag(
BindingFlags
.NotifyOnSourceUpdated);
163
ChangeFlag(
BindingFlags
.NotifyOnSourceUpdated, value);
175
return TestFlag(
BindingFlags
.NotifyOnTargetUpdated);
179
bool currentValue = TestFlag(
BindingFlags
.NotifyOnTargetUpdated);
183
ChangeFlag(
BindingFlags
.NotifyOnTargetUpdated, value);
194
return TestFlag(
BindingFlags
.NotifyOnValidationError);
198
bool currentValue = TestFlag(
BindingFlags
.NotifyOnValidationError);
202
ChangeFlag(
BindingFlags
.NotifyOnValidationError, value);
283
return TestFlag(
BindingFlags
.ValidatesOnExceptions);
287
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnExceptions);
291
ChangeFlag(
BindingFlags
.ValidatesOnExceptions, value);
302
return TestFlag(
BindingFlags
.ValidatesOnDataErrors);
306
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnDataErrors);
310
ChangeFlag(
BindingFlags
.ValidatesOnDataErrors, value);
321
return TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors);
325
bool currentValue = TestFlag(
BindingFlags
.ValidatesOnNotifyDataErrors);
329
ChangeFlag(
BindingFlags
.ValidatesOnNotifyDataErrors, value);