13 references to AcceptsReturnProperty
PresentationFramework (13)
System\Windows\Controls\Button.cs (1)
231
if (thisScope == focusScope && (focusDO == null || (bool)focusDO.GetValue(KeyboardNavigation.
AcceptsReturnProperty
) == false))
System\Windows\Controls\CheckBox.cs (1)
43
KeyboardNavigation.
AcceptsReturnProperty
.OverrideMetadata(typeof(CheckBox), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
System\Windows\Controls\ListBox.cs (1)
402
if (e.Key == Key.Enter && (bool)GetValue(KeyboardNavigation.
AcceptsReturnProperty
) == false)
System\Windows\Controls\Primitives\ButtonBase.cs (2)
39
KeyboardNavigation.
AcceptsReturnProperty
.OverrideMetadata(typeof(ButtonBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox));
632
else if (e.Key == Key.Enter && (bool)GetValue(KeyboardNavigation.
AcceptsReturnProperty
))
System\Windows\Controls\Primitives\TextBoxBase.cs (1)
477
KeyboardNavigation.
AcceptsReturnProperty
.AddOwner(typeof(TextBoxBase));
System\Windows\Controls\RadioButton.cs (1)
38
KeyboardNavigation.
AcceptsReturnProperty
.OverrideMetadata(typeof(RadioButton), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox));
System\Windows\Controls\RichTextBox.cs (1)
51
KeyboardNavigation.
AcceptsReturnProperty
.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true));
System\windows\Documents\TextEditor.cs (1)
935
return _uiScope == null ? true : (bool)_uiScope.GetValue(KeyboardNavigation.
AcceptsReturnProperty
);
System\Windows\Input\KeyboardNavigation.cs (4)
460
/// <seealso cref="KeyboardNavigation.
AcceptsReturnProperty
" />
464
element.SetValue(
AcceptsReturnProperty
, BooleanBoxes.Box(enabled));
472
/// <seealso cref="KeyboardNavigation.
AcceptsReturnProperty
" />
477
return (bool)element.GetValue(
AcceptsReturnProperty
);