New to Telerik UI for WPFStart a free 30-day trial

Customize Selection

Updated on Apr 1, 2026

RadSpreadsheet exposes several properties that enable you to control the way the selection in the control is rendered. This article describes the available properties and shows you how to work with them.

  • SelectionStroke: A dependency property of type Brush that gets or sets the stroke of the selection.

  • SelectionStrokeThickness: A dependency property of type double that gets or sets the stroke thickness of the selection.

  • SelectionFill: A dependency property of type Brush that gets or sets the fill of the selection.

  • FillHandleSelectionStroke: A dependency property of type Brush that gets or sets the fill handle selection stroke.

Figure 1 shows an example of a customized selection.

Figure 1: Customized selection in RadSpreadsheet

Customized Selection

The examples below demonstrate one way to customize the properties of the selection in XAML and in code-behind in order to achieve the result shown in the picture above.

Customizing selection

XAML
	<telerik:RadSpreadsheet x:Name="radSpreadsheet" SelectionStrokeThickness="2" SelectionStroke="Green">
	    <telerik:RadSpreadsheet.SelectionFill>
	        <SolidColorBrush Color="GreenYellow" Opacity="0.5" />
	    </telerik:RadSpreadsheet.SelectionFill>
	</telerik:RadSpreadsheet>

Customizing selection

C#
	Brush strokeBrush = new SolidColorBrush(Colors.Green);
	Brush fillBrush = new SolidColorBrush(Colors.GreenYellow);
	fillBrush.Opacity = 0.5;
	
	this.radSpreadsheet.SelectionFill = fillBrush;
	this.radSpreadsheet.SelectionStroke = strokeBrush;
	this.radSpreadsheet.SelectionStrokeThickness = 2;

See Also

In this article
See Also
Not finding the help you need?
Contact Support