Quick-Start Scenarios - WPF

3 posts, 0 answers
  1. Colin
    Colin avatar
    19 posts
    Member since:
    Jun 2011

    Posted 30 Apr 2012 Link to this post

    Ok, so I'm following the above Quick-Start, however I'm getting 4 errors when building, but don't understand why :(

    Errors are:
    Error    1    Inconsistent accessibility: property type 'WpfOpenAccessIntegration.DelegateCommand' is less accessible than property 'WpfOpenAccessIntegration.CarsViewModel.LoadCarsCommand'    c:\users\colin\documents\visual studio 2010\Projects\WpfOpenAccessIntegration\WpfOpenAccessIntegration\CarsViewModel.cs    61    32    WpfOpenAccessIntegration

    Error    2    Inconsistent accessibility: property type 'WpfOpenAccessIntegration.DelegateCommand' is less accessible than property 'WpfOpenAccessIntegration.CarsViewModel.AddCarCommand'    c:\users\colin\documents\visual studio 2010\Projects\WpfOpenAccessIntegration\WpfOpenAccessIntegration\CarsViewModel.cs    71    32    WpfOpenAccessIntegration

    Error    3    Inconsistent accessibility: property type 'WpfOpenAccessIntegration.DelegateCommand' is less accessible than property 'WpfOpenAccessIntegration.CarsViewModel.DeleteCarCommand'    c:\users\colin\documents\visual studio 2010\Projects\WpfOpenAccessIntegration\WpfOpenAccessIntegration\CarsViewModel.cs    81    32    WpfOpenAccessIntegration

    Error    4    Inconsistent accessibility: property type 'WpfOpenAccessIntegration.DelegateCommand' is less accessible than property 'WpfOpenAccessIntegration.CarsViewModel.SaveChangesCommand'    c:\users\colin\documents\visual studio 2010\Projects\WpfOpenAccessIntegration\WpfOpenAccessIntegration\CarsViewModel.cs    91    32    WpfOpenAccessIntegration

    Anyone care to assist?
  2. Colin
    Colin avatar
    19 posts
    Member since:
    Jun 2011

    Posted 30 Apr 2012 Link to this post

    Hmmm, must have been a typo as I've just copied and pasted the code from the Quick-Start and all is fine. Anyone any ideas what I may have typed in wrong? May retype this again to see if it catches me out again.
  3. DevCraft banner
  4. Viktor Zhivkov
    Admin
    Viktor Zhivkov avatar
    291 posts

    Posted 02 May 2012 Link to this post

    Hi Colin,

    I guess you have omitted the "public" type access modifier in the following code snippet:

    using System;
    namespace WpfOpenAccessIntegration
    {
       public class DelegateCommand : System.Windows.Input.ICommand
       {
           //more code
       }
    }
    Adding/changing the access modifier to public should solve the build error.

    Greetings,
    Viktor Zhivkov
    the Telerik team
    Follow @OpenAccessORM Twitter channel to get first the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Back to Top