| Visual Basic (Declaration) | |
|---|---|
<TemplatePartAttribute(Name="PART_RowResizerThumb", Type=System.Windows.Controls.Primitives.Thumb)> Public Class RowSelector Inherits ContentControl Implements INotifyPropertyChanged, ISupportInitialize, IFrameworkInputElement, IInputElement, IAddChild, IHaveResources, IAnimatable, DUCE.IResource | |
| C# | |
|---|---|
[TemplatePartAttribute(Name="PART_RowResizerThumb", Type=System.Windows.Controls.Primitives.Thumb)] public class RowSelector : ContentControl, INotifyPropertyChanged, ISupportInitialize, IFrameworkInputElement, IInputElement, IAddChild, IHaveResources, IAnimatable, DUCE.IResource | |
All examples in this topic assume that the grid is bound to the Orders table of the Northwind database, unless stated otherwise.
The following example demonstrates how to display a row's visual index in its corresponding row selector by creating a style targeting the RowSelector type that displays the value of its ItemIndex property as its content. The style is then assigned to the RowSelector.RowSelectorStyle attached property, which is set by the implicit DataRow style.
| XAML | Copy Code |
|---|---|
<Grid xmlns:xcdg="http://schemas.xceed.com/wpf/xaml/datagrid"> | |
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
System.Windows.Controls.Control
System.Windows.Controls.ContentControl
Xceed.Wpf.DataGrid.RowSelector
Supported Operating Systems: Windows Server 2003 Service Pack 1; Windows Vista; Windows XP Service Pack 2
Reference
RowSelector MembersXceed.Wpf.DataGrid Namespace
Copy Code