How can i get selected item(s) and events from ListView with Caliburn.Micro in C#?

前端 未结 1 918
生来不讨喜
生来不讨喜 2021-01-24 08:30

I wrote a program with MVVM (C#) and XAML using Caliburn.Micro library, how can i:

  • get all selected items (not only one item)?
  • get select
相关标签:
1条回答
  • 2021-01-24 09:13

    You have to hook up these events to a command and process them in the viewmodel.

    Not using Caliburn.Micro but there should also be a concept for EventToCommand Binding. I quick search revealed the following links.

    https://caliburnmicro.codeplex.com/wikipage?title=Cheat%20Sheet

    https://caliburnmicro.codeplex.com/wikipage?title=All%20About%20Actions

    http://www.mindscapehq.com/blog/index.php/2012/01/24/caliburn-micro-part-3-more-about-events-and-parameters/

    if I did not get your question correct please let me know...

    HTH

    0 讨论(0)
提交回复
热议问题