> For the complete documentation index, see [llms.txt](https://docs.radicalframework.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.radicalframework.com/release-2/behaviors/textbox-behaviors/textbox-command.md).

# Command

It could be interesting to attach a command to a TextBox if the enter key is pressed while the TextBox is focused so to provide a better UX to the end user, the TextBoxManager Command attached property (or behavior) comes to the rescue in this scenario:

```markup
<TextBox Text="bla bla...">
    <i:Interaction.Behaviors>
        <behaviors:TextBoxCommandBehavior Command="{Binding Path=MyCommand}" />
    </i:Interaction.Behaviors>
</TextBox>
```

```markup
<TextBox Text="bla bla..." behaviors:TextBoxManager.Command="{Binding Path=MyCommand}" />
```

the attached property, and the behavior too, is defined in the `http://schemas.radicalframework.com/windows/behaviors` xml namespace.
