1 instantiation of BoolField
PresentationFramework (1)
System\Windows\Controls\MenuItem.cs (1)
2662
new FrameworkPropertyMetadata(new
BoolField
())
26 references to BoolField
PresentationFramework (26)
System\Windows\Controls\MenuItem.cs (26)
444
MenuItem.SetBoolField(this,
BoolField
.CanExecuteInvalid, false);
456
MenuItem.SetBoolField(this,
BoolField
.CanExecuteInvalid, true);
636
if (subItem != null && MenuItem.GetBoolField(subItem,
BoolField
.CanExecuteInvalid))
645
MenuItem.SetBoolField(menuItem,
BoolField
.IgnoreMouseEvents, true);
646
MenuItem.SetBoolField(menuItem,
BoolField
.MouseEnterOnMouseMove, false);
654
MenuItem.SetBoolField(menuItem,
BoolField
.IgnoreMouseEvents, false);
709
MenuItem.SetBoolField(menuItem,
BoolField
.IgnoreNextMouseLeave, true);
1213
bool openedWithKeyboard = MenuItem.GetBoolField(this,
BoolField
.OpenedWithKeyboard);
1236
MenuItem.SetBoolField(this,
BoolField
.OpenedWithKeyboard, false);
1337
if (MenuItem.GetBoolField(menuItem,
BoolField
.CanExecuteInvalid))
1668
MenuItem.GetBoolField(parent,
BoolField
.MouseEnterOnMouseMove))
1670
MenuItem.SetBoolField(parent,
BoolField
.MouseEnterOnMouseMove, false);
1690
if (parent == null || !MenuItem.GetBoolField(parent,
BoolField
.IgnoreMouseEvents))
1717
MenuItem.SetBoolField(parent,
BoolField
.MouseEnterOnMouseMove, true);
1793
if (MenuItem.GetBoolField(this,
BoolField
.IgnoreNextMouseLeave))
1797
MenuItem.SetBoolField(this,
BoolField
.IgnoreNextMouseLeave, false);
2004
if ((parent != null) && (!MenuItem.GetBoolField(parent,
BoolField
.IgnoreMouseEvents)))
2007
MenuItem.SetBoolField(parent,
BoolField
.IgnoreMouseEvents, true);
2013
MenuItem.SetBoolField(parent,
BoolField
.IgnoreMouseEvents, false);
2339
MenuItem.SetBoolField(this,
BoolField
.OpenedWithKeyboard, true);
2660
typeof(
BoolField
),
2665
private static bool GetBoolField(UIElement element,
BoolField
field)
2667
return (((
BoolField
)element.GetValue(BooleanFieldStoreProperty)) & field) != 0;
2670
private static void SetBoolField(UIElement element,
BoolField
field, bool value)
2674
element.SetValue(BooleanFieldStoreProperty, ((
BoolField
)element.GetValue(BooleanFieldStoreProperty)) | field);
2678
element.SetValue(BooleanFieldStoreProperty, ((
BoolField
)element.GetValue(BooleanFieldStoreProperty)) & (~field));