13 references to AcceptsReturnProperty
PresentationFramework (13)
src\Framework\System\Windows\Controls\Button.cs (1)
227if (thisScope == focusScope && (focusDO == null || (bool)focusDO.GetValue(KeyboardNavigation.AcceptsReturnProperty) == false))
src\Framework\System\Windows\Controls\CheckBox.cs (1)
44KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(CheckBox), new FrameworkPropertyMetadata(BooleanBoxes.FalseBox));
src\Framework\System\Windows\Controls\ListBox.cs (1)
400if (e.Key == Key.Enter && (bool)GetValue(KeyboardNavigation.AcceptsReturnProperty) == false)
src\Framework\System\Windows\Controls\Primitives\ButtonBase.cs (2)
36KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(ButtonBase), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); 621else if (e.Key == Key.Enter && (bool)GetValue(KeyboardNavigation.AcceptsReturnProperty))
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (1)
500KeyboardNavigation.AcceptsReturnProperty.AddOwner(typeof(TextBoxBase));
src\Framework\System\Windows\Controls\RadioButton.cs (1)
34KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RadioButton), new FrameworkPropertyMetadata(MS.Internal.KnownBoxes.BooleanBoxes.FalseBox));
src\Framework\System\Windows\Controls\RichTextBox.cs (1)
53KeyboardNavigation.AcceptsReturnProperty.OverrideMetadata(typeof(RichTextBox), new FrameworkPropertyMetadata(true));
src\Framework\System\windows\Documents\TextEditor.cs (1)
962return _uiScope == null ? true : (bool)_uiScope.GetValue(KeyboardNavigation.AcceptsReturnProperty);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (4)
502/// <seealso cref="KeyboardNavigation.AcceptsReturnProperty" /> 509element.SetValue(AcceptsReturnProperty, BooleanBoxes.Box(enabled)); 517/// <seealso cref="KeyboardNavigation.AcceptsReturnProperty" /> 525return (bool)element.GetValue(AcceptsReturnProperty);