KeyboardNavigation.SetAcceptsReturn(DependencyObject, Boolean) KeyboardNavigation.SetAcceptsReturn(DependencyObject, Boolean) KeyboardNavigation.SetAcceptsReturn(DependencyObject, Boolean) KeyboardNavigation.SetAcceptsReturn(DependencyObject, Boolean) Method

Definition

Sets the value of the AcceptsReturn attached property for the specified element.

public:
 static void SetAcceptsReturn(System::Windows::DependencyObject ^ element, bool enabled);
public static void SetAcceptsReturn (System.Windows.DependencyObject element, bool enabled);
static member SetAcceptsReturn : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetAcceptsReturn (element As DependencyObject, enabled As Boolean)

Parameters

element
DependencyObject DependencyObject DependencyObject DependencyObject

The element to write the attached property to.

enabled
Boolean Boolean Boolean Boolean

The property value to set.

Exceptions

Applies to

See also