Disabling Mouse Hover in Telerik DataGrid for .NET MAUI
Environment
Version | Control | Author |
---|---|---|
11.1.0 | DataGrid for .NET MAUI | Dobrinka Yordanova |
Description
I want to fully disable mouse hover effects in Telerik DataGrid for .NET MAUI on Windows.
This knowledge base article also answers the following questions:
- How to remove mouse hover effects in Telerik DataGrid for .NET MAUI?
- Can I make the mouse hover appearance transparent in Telerik DataGrid?
- How to customize the hover style in Telerik DataGrid?
Solution
To disable mouse hover effects in Telerik DataGrid for .NET MAUI, customize the MouseHoverStyle
property by removing the hover appearance. Set the background and border colors to transparent and the border thickness to 0
. Use the following example:
<telerik:RadDataGrid x:Name="grid">
<telerik:RadDataGrid.MouseHoverStyle>
<Style TargetType="telerik:DataGridMouseHoverAppearance">
<Setter Property="BackgroundColor" Value="Transparent" />
<Setter Property="BorderColor" Value="Transparent" />
<Setter Property="BorderThickness" Value="0" />
</Style>
</telerik:RadDataGrid.MouseHoverStyle>
</telerik:RadDataGrid>