I need to apply the Hoverless resource that is in this blog:
http://blogs.infragistics.com/blogs/kiril_matev/archive/2010/10/26/optimizing-xamdatagrid-performance.aspx
I only need to apply it if app is running via RDP. When I add it in xaml as described in the blog it works. But I can't get it to work when I add it in c#.
I tried:
ResourceDictionary resDic = new ResourceDictionary();
resDic.Source = new Uri("/CAPPS;component/Styles/HoverlessStyles.xaml",UriKind.RelativeOrAbsolute);
xamDataGridPeriods.Resources.Add("hoverLess", resDic);
Also:
xamDataGridPeriods.Resources.Add("hoverLess", Application.LoadComponent( new Uri("/CAPPS;component/Styles/HoverlessStyles.xaml", UriKind.RelativeOrAbsolute)) as ResourceDictionary);
LOL, just figured it out.
I just did this:
xamDataGridPeriods.Resources.Source = new Uri("/CAPPS;component/Styles/HoverlessStyles.xaml", UriKind.RelativeOrAbsolute);
Hello boricua,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.