SelectedLoans = new BindableCollection<LoanDTO>();
foreach (var selectedItem in LoanGrid.SelectedItems)
That works perfectly fine, but I'm trying to have it be in MVVM format using caliburn.
on xaml side, cal:Message.Attach="[Filtered] = [Filtered];[Filtering] = [Filtering] "
private BindableCollection<LoanDTO> _oldLoans = new BindableCollection<LoanDTO>();
public void Filtered()
SelectedLoans = new BindableCollection<LoanDTO>(Items.Where(x => _oldLoans.Any(y => y.Id == x.Id)));
public void Filtering()
_oldLoans = new BindableCollection<LoanDTO>();
foreach (var selectedItem in SelectedLoans)
The selecteditems get cleared using the MVVM methods. Any thoughts?
1 Answer, 1 is accepted
answered on 01 Mar 2016, 09:44 AM
In order to handle a given event using the MVVM pattern, you can benefit from the EventToCommandBehavior mechanism. Can you please check it out and let me know how it goes?
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Feedback Portal
and vote to affect the priority of the items