private void CustomComboBox_OnItemClicked(object sender, ItemClcikedEventArgs e) { //TODO move to notification VM var notification = ((FrameworkElement) sender).DataContext as SomeOneEditingFileViewModel; var user = e.Item as UserViewModel; if (notification != null && user != null) { notification.UserClicked.Execute(user); } }
private void versionList_VersionClciked(object sender, ItemClcikedEventArgs e) { _vm.GoToVersionInBroweserCommand.Execute(e.Item); }