0

I'm getting this annoying message in my XAML files:

enter image description here


enter image description here


enter image description here


Anyone knows how to fix it?

Visual Studio 2015 and 2017
Resharper


Edit:

My conclusion is that the framework doesn't contribute to this errors, it is a VS BUG or something else because it happens with different types of MVVM frameworks.

rubStackOverflow
  • 5,615
  • 2
  • 29
  • 43
  • There is a similar issue, please refer it in [https://github.com/Caliburn-Micro/Caliburn.Micro/issues/381](https://github.com/Caliburn-Micro/Caliburn.Micro/issues/381). – Scavenger Jun 22 '17 at 10:12
  • Yep, that's me on that post, I thought that the problem was solved. Any tag that refers to Caliburn this message appears. @Scavenger – rubStackOverflow Jun 22 '17 at 12:46

1 Answers1

1

It's not a fix but might be something to consider using instead of the micro:Message.Attach. Can you try using Behaviours instead

  <ListView IsItemClickEnabled="True"...>
    <interactivity:Interaction.Behaviors>
      <core:EventTriggerBehavior EventName="ItemClick">
        <core:InvokeCommandAction Command="{Binding ItemClick}" />
      </core:EventTriggerBehavior>
    </interactivity:Interaction.Behaviors>
  </ListView>

You can then bind to a ICommand in your ViewModel. You can find an example of creating a CommandHandler here.

jsmyth886
  • 531
  • 7
  • 15