SelectionBackground

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets the brush that fills the background of the selected text.

<object SelectionBackground="colorString"  .../>
-or-
<object>
  <object.SelectionBackground>
    singleBrush
  </object.SelectionBackground>
</object>
value = object.SelectionBackground
object.SelectionBackground = value

XAML Values

See Brush.

Property Value

Type: Brush

The brush that fills the background of the selected text.

This property is read/write. The default is a null brush.

Applies To

TextBox, PasswordBox

Version Information

Silverlight 2