Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

198
Views
Invalid value for 'Event'-Property (XAML Eventsetter)

I'm using Visual Studio 2015 Community and I get the following error message:

Invalid value for 'Event'-Property: Microsoft.VisualStudio.DesignTools.Xaml.LanguageService.Semantics.XmlValue.

Here's the code behind:

<Style x:Key="TextBoxStyle1" BasedOn="{x:Null}" TargetType="{x:Type TextBox}">
    <EventSetter Event="MouseEnter" Handler="Check_MouseEnter" />
    <EventSetter Event="MouseLeave" Handler="Check_MouseLeave" />
    <EventSetter Event="GotFocus" Handler="Check_GotFocus" />

I've tried UIElement.MouseEnter, Mouse.MouseEnter, TextBox.MouseEnter. If I compile the handler works just fine, but the error message is still there.

Any suggestions?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

This seems a bug in the WPF designer, as already reported here on Microsoft Connect.

It seems that the designer falsely gives an warning or error, but eventually the code is okay, so it compiles and works. Nothing you should worry about now, since the product isn't released yet.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!