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

merged dictionary

1 Answer 150 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 1
robert asked on 26 Aug 2014, 07:08 AM
Hello Telerik Team,
i have a user control Project. I declared the theme files in MergedDictionaries to style the ganttcontrol.
The structure is designed as Mvvm. When i start the Application i get a Null reference exception.
How can i fix this issue? Thank you and regards Robert ...
    DataContext="{DynamicResource GanttViewModel}"
    mc:Ignorable="d" d:DesignHeight="1024" d:DesignWidth="1280">
            <vm:GanttControlViewModel x:Key="GanttViewModel"/>
                <ResourceDictionary Source="pack://application:,,,/GanttView;component/Themes/System.Windows.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/GanttView;component/Themes/Telerik.Windows.Controls.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/GanttView;component/Themes/Telerik.Windows.Controls.GanttView.xaml"/>

1 Answer, 1 is accepted

Sort by
Telerik team
answered on 26 Aug 2014, 11:35 AM
Hello Robert,

I don't see anything incorrect in the way you have merged the ResourceDictionaries, I have also tested it and it work as expected. Please make sure you have the correct paths to the XAML files as this might cause the issue. However the exception might be caused by something else, not the merged dictionaries, if so we would need more sample code or a sample project if possible.

I'm looking forward to hearing from 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.
Asked by
Top achievements
Rank 1
Answers by
Telerik team
Share this question