1 instantiation of BoolField
PresentationFramework (1)
src\Framework\System\Windows\Controls\MenuItem.cs (1)
2719
new FrameworkPropertyMetadata(new
BoolField
())
26 references to BoolField
PresentationFramework (26)
src\Framework\System\Windows\Controls\MenuItem.cs (26)
447
MenuItem.SetBoolField(this,
BoolField
.CanExecuteInvalid, false);
459
MenuItem.SetBoolField(this,
BoolField
.CanExecuteInvalid, true);
631
if (subItem != null && MenuItem.GetBoolField(subItem,
BoolField
.CanExecuteInvalid))
640
MenuItem.SetBoolField(menuItem,
BoolField
.IgnoreMouseEvents, true);
641
MenuItem.SetBoolField(menuItem,
BoolField
.MouseEnterOnMouseMove, false);
649
MenuItem.SetBoolField(menuItem,
BoolField
.IgnoreMouseEvents, false);
704
MenuItem.SetBoolField(menuItem,
BoolField
.IgnoreNextMouseLeave, true);
1199
bool openedWithKeyboard = MenuItem.GetBoolField(this,
BoolField
.OpenedWithKeyboard);
1222
MenuItem.SetBoolField(this,
BoolField
.OpenedWithKeyboard, false);
1323
if (MenuItem.GetBoolField(menuItem,
BoolField
.CanExecuteInvalid))
1704
MenuItem.GetBoolField(parent,
BoolField
.MouseEnterOnMouseMove))
1706
MenuItem.SetBoolField(parent,
BoolField
.MouseEnterOnMouseMove, false);
1726
if (parent == null || !MenuItem.GetBoolField(parent,
BoolField
.IgnoreMouseEvents))
1753
MenuItem.SetBoolField(parent,
BoolField
.MouseEnterOnMouseMove, true);
1829
if (MenuItem.GetBoolField(this,
BoolField
.IgnoreNextMouseLeave))
1833
MenuItem.SetBoolField(this,
BoolField
.IgnoreNextMouseLeave, false);
2046
if ((parent != null) && (!MenuItem.GetBoolField(parent,
BoolField
.IgnoreMouseEvents)))
2049
MenuItem.SetBoolField(parent,
BoolField
.IgnoreMouseEvents, true);
2055
MenuItem.SetBoolField(parent,
BoolField
.IgnoreMouseEvents, false);
2399
MenuItem.SetBoolField(this,
BoolField
.OpenedWithKeyboard, true);
2717
typeof(
BoolField
),
2722
private static bool GetBoolField(UIElement element,
BoolField
field)
2724
return (((
BoolField
)element.GetValue(BooleanFieldStoreProperty)) & field) != 0;
2727
private static void SetBoolField(UIElement element,
BoolField
field, bool value)
2731
element.SetValue(BooleanFieldStoreProperty, ((
BoolField
)element.GetValue(BooleanFieldStoreProperty)) | field);
2735
element.SetValue(BooleanFieldStoreProperty, ((
BoolField
)element.GetValue(BooleanFieldStoreProperty)) & (~field));