This is a migrated thread and some comments may be shown as answers.

NoXaml - Missing Resources

1 Answer 319 Views
GridView
This is a migrated thread and some comments may be shown as answers.
IT-Support
Top achievements
Rank 2
IT-Support asked on 16 Aug 2013, 12:04 PM
Hello,

I have a problem with the RadGridView (RadControls for WPF Q2 2013) when using the NoXaml assemblies: It seems, that one or two resources from the theme are missing - when i open the filter dialog for a column, the rectangle of the checkbox which has the focus disappears. Also grouping of columns is very slow. 

Looking at the output window, I see thousends of warnings:
System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='Telerik.Windows.Controls.InternalResourceKey'; ResourceKey.HashCode='0'; ResourceKey.Type='Telerik.Windows.Controls.InternalResourceKey'

And also a few warnings of this kind:
System.Windows.Data Error: 4 : Cannot find source for binding with reference 'RelativeSource FindAncestor, AncestorType='Telerik.Windows.Controls.RadGridView', AncestorLevel='2''. BindingExpression:Path=FontSize; DataItem=null; target element is 'ListBox' (Name='PART_DistinctValuesList'); target property is 'FontSize' (type 'Double')

I have included the required resources of the Window8-Theme and the other controls are working fine (RadComboBox, RadWatermarkTextBox etc.).
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/myAssembly;component/Resources/Theme/System.Windows.xaml" />
        <ResourceDictionary Source="/myAssembly;component/Resources/Theme/Telerik.Windows.Controls.xaml" />
        <ResourceDictionary Source="/myAssembly;component/Resources/Theme/Telerik.Windows.Controls.Input.xaml" />
        <ResourceDictionary Source="/myAssembly;component/Resources/Theme/Telerik.Windows.Controls.Navigation.xaml" />
        <ResourceDictionary Source="/myAssembly;component/Resources/Theme/Telerik.Windows.Controls.GridView.xaml" />
    </ResourceDictionary.MergedDictionaries>
     
    <!-- Dummy Style -->
    <Style TargetType="{x:Type Rectangle}" />
</ResourceDictionary>

Did I miss something?


Best regards,
Thomas

1 Answer, 1 is accepted

Sort by
0
IT-Support
Top achievements
Rank 2
answered on 18 Aug 2013, 08:34 AM
Ok, I solved the problem - just in case that somebody run into the same problem:

  • The binding error has been fixed in the latest internal build.
  • The problem with the MouseOver apperance in CheckBoxes can be fixed by editing the "Telerik.Windows.Controls.Navigation.xaml" resource dictionary. I have replaced all occurrences of "{telerik:Windows8Resource ResourceKey=StrongBrush}" with "{StaticResource StrongBrush}" and now the apperance of the CheckBoxes is correct.

Best regards,
Thomas
Tags
GridView
Asked by
IT-Support
Top achievements
Rank 2
Answers by
IT-Support
Top achievements
Rank 2
Share this question
or