Gets or sets the brush that highlights selected text.
Assembly: PresentationFramework (in PresentationFramework.dll)
You can specify the brush that highlights selected text by setting the SelectionOpacity properties.and
<PasswordBox SelectionBrush="Green" SelectionOpacity="0.5" Foreground="Red" CaretBrush="Red"/>
The preceding example produces output that is similar to the following illustration.
Available since 4.0