TabStripAdditionalContent, Events's button don't work!

2 posts, 0 answers
  1. Marc
    Marc avatar
    1 posts
    Member since:
    Sep 2014

    Posted 17 Sep 2014 Link to this post

    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 ''.            C:\Dotnet\NavigateurCartographique\Env.Nc\Env.Nc.App\MainPage.xaml     81        63        Env.Nc.App

  2. Martin
    Martin avatar
    1042 posts

    Posted 19 Sep 2014 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top