> 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/password.md).

# Password

If we try to data-bind the `Password` property of a `PasswordBox` control we end up with an error because the `Password` property cannot be bound due to the fact that is not a dependency property (mainly for security reasons).

In those cases you can take advantage of the `PasswordBoxBehavior` in the following manner:

```markup
<PasswordBox>
    <i:Interaction.Behaviors>
        <behaviors:PasswordBoxBehavior Text="{Binding Path=MyPasswordProperty}" />
    </i:Interaction.Behaviors>
</PasswordBox>
```

where the behaviors xml namespace is defined as: `http://schemas.radicalframework.com/windows/behaviors`. In the same namespace is also defined a `Password` attached property that exposes exactly the same behavior.

The password behavior, and the attached property too, also exposes a `Command` property useful to bind a command to the “enter” key when the `PasswordBox` is focused.
