merged dictionary

2 posts, 0 answers
  1. robert
    robert avatar
    27 posts
    Member since:
    Aug 2011

    Posted 26 Aug 2014 Link to this post

    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"/>
  2. Kalin
    Kalin avatar
    1189 posts

    Posted 26 Aug 2014 Link to this post

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top