1 instantiation of BoolField
PresentationFramework (1)
System\Windows\Controls\MenuItem.cs (1)
2652
new FrameworkPropertyMetadata(new
BoolField
())
26 references to BoolField
PresentationFramework (26)
System\Windows\Controls\MenuItem.cs (26)
434
MenuItem.SetBoolField(this,
BoolField
.CanExecuteInvalid, false);
446
MenuItem.SetBoolField(this,
BoolField
.CanExecuteInvalid, true);
626
if (subItem != null && MenuItem.GetBoolField(subItem,
BoolField
.CanExecuteInvalid))
635
MenuItem.SetBoolField(menuItem,
BoolField
.IgnoreMouseEvents, true);
636
MenuItem.SetBoolField(menuItem,
BoolField
.MouseEnterOnMouseMove, false);
644
MenuItem.SetBoolField(menuItem,
BoolField
.IgnoreMouseEvents, false);
699
MenuItem.SetBoolField(menuItem,
BoolField
.IgnoreNextMouseLeave, true);
1203
bool openedWithKeyboard = MenuItem.GetBoolField(this,
BoolField
.OpenedWithKeyboard);
1226
MenuItem.SetBoolField(this,
BoolField
.OpenedWithKeyboard, false);
1327
if (MenuItem.GetBoolField(menuItem,
BoolField
.CanExecuteInvalid))
1658
MenuItem.GetBoolField(parent,
BoolField
.MouseEnterOnMouseMove))
1660
MenuItem.SetBoolField(parent,
BoolField
.MouseEnterOnMouseMove, false);
1680
if (parent == null || !MenuItem.GetBoolField(parent,
BoolField
.IgnoreMouseEvents))
1707
MenuItem.SetBoolField(parent,
BoolField
.MouseEnterOnMouseMove, true);
1783
if (MenuItem.GetBoolField(this,
BoolField
.IgnoreNextMouseLeave))
1787
MenuItem.SetBoolField(this,
BoolField
.IgnoreNextMouseLeave, false);
1994
if ((parent != null) && (!MenuItem.GetBoolField(parent,
BoolField
.IgnoreMouseEvents)))
1997
MenuItem.SetBoolField(parent,
BoolField
.IgnoreMouseEvents, true);
2003
MenuItem.SetBoolField(parent,
BoolField
.IgnoreMouseEvents, false);
2329
MenuItem.SetBoolField(this,
BoolField
.OpenedWithKeyboard, true);
2650
typeof(
BoolField
),
2655
private static bool GetBoolField(UIElement element,
BoolField
field)
2657
return (((
BoolField
)element.GetValue(BooleanFieldStoreProperty)) & field) != 0;
2660
private static void SetBoolField(UIElement element,
BoolField
field, bool value)
2664
element.SetValue(BooleanFieldStoreProperty, ((
BoolField
)element.GetValue(BooleanFieldStoreProperty)) | field);
2668
element.SetValue(BooleanFieldStoreProperty, ((
BoolField
)element.GetValue(BooleanFieldStoreProperty)) & (~field));