Last Updated: 14 Jun 2017 06:50 by Lukas
Created on: 09 Jun 2017 10:09
Category: GridView
Type: Bug Report
GridView: Custom GridViewColumn throws XamlParseException when there is a resource dictionary merged with a relative path in a resource dictionary in Themes/Generic.xaml
workaround is to override the OnInitialized of the custom column:

 protected override void OnInitialized(EventArgs e)
        {/* //if XAML assemblies

            Theme theme = StyleManager.GetTheme(this);
            Type themeType = null;
            if (theme != null)
                themeType = theme.GetType();
            this.DefaultStyleKey = new ThemeResourceKey() { ElementType = typeof(Telerik.Windows.Controls.GridViewColumn), ThemeType = themeType };*/
1 comment
Posted on: 14 Jun 2017 06:50
The bug can also occur on Custom Controls not derived of any telerik class. But it is also fixed by this workaround.