Style in ResourceDictionary being ignored

3 posts, 0 answers
  1. Karen
    Karen avatar
    2 posts
    Member since:
    Oct 2013

    Posted 07 May 2014 Link to this post

    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:

            <ResourceDictionary Source="Styles/GridViewRowStyle.xaml"/>

    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?
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 08 May 2014 Link to this post


    I tested the described behavior and I am afraid I could not reproduce any issue.

    You can check the attached demo solution as a reference.

    Let me know how it works for you.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. Karen
    Karen avatar
    2 posts
    Member since:
    Oct 2013

    Posted 15 May 2014 in reply to Dimitrina Link to this post


    I figured out it was because I am not using the App.xaml for anything other than the designer. I had to add the resources manually. Thanks anyhow.
Back to Top