FocusBehavior Class
Provides attached behavior for DataGrid controls to track the focus.
public static class FocusBehavior
    - Inheritance:
 - object object
 
Methods
GetIsFocusedHeader(DataGridColumnHeader)
Gets 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:
 The object's value.
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:
 The focus that should be tracked in a DataGrid.
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
Identifies the IsFocusedHeader attached dependency property.  This field is read-only.
public static readonly DependencyProperty IsFocusedHeaderProperty
        TrackingModesProperty
Identifies the TrackingModes attached dependency property.  This field is read-only.
public static readonly DependencyProperty TrackingModesProperty