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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With