In This Article

FocusBehavior Class

Provides attached behavior for DataGrid controls to track the focus.

public static class FocusBehavior
Inheritance:
object object

Methods

GetIsFocusedHeader(DataGridColumnHeader)

Returns a value indicating whether a DataGridColumnHeader corresponds to the column of the a currently focused DataGridCell.

public static bool GetIsFocusedHeader(DataGridColumnHeader obj)
Parameter Type Description
obj DataGridColumnHeader

The object from which the property value is read.

Returns

bool

GetTrackingModes(DataGrid)

Gets the value of the TrackingModesProperty attached property for a specified DataGrid.

public static FocusTrackingModes GetTrackingModes(DataGrid obj)
Parameter Type Description
obj DataGrid

The object to which the attached property is retrieved.

Returns

FocusTrackingModes

SetTrackingModes(DataGrid, FocusTrackingModes)

Sets the value of the TrackingModesProperty attached property to a specified DataGrid.

public static void SetTrackingModes(DataGrid obj, FocusTrackingModes value)
Parameter Type Description
obj DataGrid

The object to which the attached property is written.

value FocusTrackingModes

A value indicating the focus that should be tracked in a DataGrid.

Fields

IsFocusedHeaderProperty

Defines the IsFocusedHeader attached property.

public static readonly DependencyProperty IsFocusedHeaderProperty

TrackingModesProperty

Defines the TrackingModes attached property.

public static readonly DependencyProperty TrackingModesProperty

Inherited Members