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

TabStripAdditionalContent, Events's button don't work!

1 Answer 7 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 17 Sep 2014, 12:55 PM
Hello, I use the event "onclick" proposed by intelliscense VisualStudio 2010 to control "Button" but at compile time, the error 221 is displayed. How to solve this problem please.

Erreur  221      The property 'onclick' does not exist on the type 'Button' in the XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'.            C:\Dotnet\NavigateurCartographique\Env.Nc\Env.Nc.App\MainPage.xaml     81        63        Env.Nc.App

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 19 Sep 2014, 10:22 AM
Hi Marc,

It seems that there is something not right with the intellisense of VisualStudio. The intellisense demonstrated in the attached picture looks like the one for HTML code. The suggested events and properties are for HTML. Can you please try to delete manually the "bin" and "obj"  folders from projects and then Clean and Rebuild the solution? You can also try to clean the Visual Studio cache and see if the issue still occurs.

As for the event in Silverlight (and WPF) it is called Click, not onclick.
<Button Content="My button" Click="MyButton_Clicik" />

I hope this works.

​Regards,
Martin
Telerik
 
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.
 
Tags
RibbonView and RibbonWindow
Asked by
Marc
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or