Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

197
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda