I am trying to remove the mouseover row highlight on a RadGridView. I've followed the instructions here, but I put the style in a resource dictionary. Here is the App.xaml:
And the RadGridView xaml:
This style is completely ignored if it is in an external file. If I do the same procedure as in the stated in the documentation but put it in the MainWindow.xaml file, it works correctly. Why is this?
<ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Styles/GridViewRowStyle.xaml"/> </ResourceDictionary.MergedDictionaries></ResourceDictionary>And the RadGridView xaml:
<telerik:RadGridView x:Name="statusGrid" AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" ItemsSource="{Binding Status}" IsReadOnly="True" RowStyle="{DynamicResource GridViewRowStyle}">This style is completely ignored if it is in an external file. If I do the same procedure as in the stated in the documentation but put it in the MainWindow.xaml file, it works correctly. Why is this?