Allows overriding the cell's foreground and background settings.
public event EventHandler<CustomCellAppearanceEventArgs> CustomCellAppearance
Public Event CustomCellAppearance As EventHandler(Of CustomCellAppearanceEventArgs)
The CustomCellAppearance event's data class is CustomCellAppearanceEventArgs. The following properties provide information specific to this event:
|CellSelectionState||Gets a cell's selection state.|
|Column||Gets a column that contains the corresponding cell.|
|ConditionalValue||Gets the value of the CustomAppearanceEventArgs.Property property calculated by the conditional formatting mechanism. Inherited from CustomAppearanceEventArgs.|
|Handled||Gets or sets whether appearance customization is handled and no default processing is required. Inherited from CustomAppearanceEventArgs.|
|IsEditorVisible||Gets whether an editor is visible for the corresponding cell.|
|OriginalValue||Gets the original value of the CustomAppearanceEventArgs.Property property. Inherited from CustomAppearanceEventArgs.|
|Property||Gets a dependency property whose value is changed by the conditional formatting mechanism. Inherited from CustomAppearanceEventArgs.|
|Result||Gets or sets the value of the CustomAppearanceEventArgs.Property property applied to the control. Inherited from CustomAppearanceEventArgs.|
|RowHandle||Gets a handle of a row for which an event has been raised. Inherited from CustomRowAppearanceEventArgs.|
|RowSelectionState||Gets a row's selection state. Inherited from CustomRowAppearanceEventArgs.|
|Source||Gets the View that raised the event. Inherited from CustomRowAppearanceEventArgs.|
Refer to the Formatting Focused Cells and Rows topic to learn how to override the focused row background with the background color defined in the conditional formatting rules.