Object does not match target type > App.xaml

2 posts, 0 answers
  1. Kevin
    Kevin avatar
    11 posts
    Member since:
    May 2012

    Posted 11 Dec 2013 Link to this post

    I downloaded the most recent source code and called the "Build_WPF40_Xamlless.bat 12/11/2013" to build the Release.NoXaml .NET 4 .DLLs.  In my App.xaml, I'm merging dictionaries:  

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Windows7;component/Themes/System.Windows.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.Input.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.Chart.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.Data.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.GridView.xaml" />
        <ResourceDictionary Source="/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.RibbonView.xaml" />
        <ResourceDictionary Source="Resource Dictionaries/MyDictionary.xaml" />
    </ResourceDictionary.MergedDictionaries>

    and I'm getting a Object does not match target type in App.xaml during design time.  If I delete the line:

    <ResourceDictionary Source="/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.Windows.Controls.Navigation.xaml" />

    The error goes away.  Is there anything I can do to get ride of this error?


  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 13 Dec 2013 Link to this post

    Hello Kevin,

    I have tried to reproduce the described issue, but without much success. Could you please confirm that you've built the source of Q3 2013 SP release? Can you send us a small demo project?

    Looking forward to your reply.

    Regards,
    Yana
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top