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

Quick-Start Scenarios - WPF

2 Answers 65 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Colin
Top achievements
Rank 2
Colin asked on 30 Apr 2012, 02:27 PM
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 Answers, 1 is accepted

Sort by
0
Colin
Top achievements
Rank 2
answered on 30 Apr 2012, 05:58 PM
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.
0
Viktor Zhivkov
Telerik team
answered on 02 May 2012, 01:27 PM
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!
Tags
Getting Started
Asked by
Colin
Top achievements
Rank 2
Answers by
Colin
Top achievements
Rank 2
Viktor Zhivkov
Telerik team
Share this question
or