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

Property "Command" does not have an accessible setter

1 Answer 616 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 1
Pierre asked on 20 Jan 2016, 02:54 PM

I can't get rid of a XAML designer error.

<UserControl x:Class="MenuItemBinding.SomeUserControl"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
   <Grid>
      <telerik:RadMenu>
         <telerik:RadMenuItem Header="Hello World" Command="{Binding HelloWorld}" />
      </telerik:RadMenu>
   </Grid>
</UserControl>
 

 The 'Command="{Binding' part has a green underline with the tooltip "The property "Command" does not have an accessible setter".

Observations:

  • Only happens in x64 (x86 doesn't show this error).
  • Seems to only happen with RadMenuItem although I have not check all cases.
  • It happens regardless where I place the RadMenuItem in the XAML.
  • The application still works fine even though the XAML designer is stuck to "Invalid Markup"

How do I get rid of this error?

1 Answer, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 22 Jan 2016, 10:00 AM
Hi Pierre,

Since the release of Visual Studio 2015 (which we believe you are using) we have hit several issues with its designer. We isolated and reported most of them to Microsoft. One of these issues is the one you are currently observing:
https://connect.microsoft.com/VisualStudio/feedback/details/2006584/designer-error-the-property-command-does-not-have-an-accessible-setter-for-a-control-implementing-icommandsource-in-wpf-application-with-x64-platform-target

In the comments Microsoft stated that fix should be available with the next update of VS 2015.

Hope the provided information will be helpful for you.

Regards,
Nasko
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Menu
Asked by
Pierre
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or