protected virtual Type LookupAttributedViewModelType(Type candidateType) { var attribute = candidateType .GetCustomAttributes(typeof(MvxViewForAttribute), false) .FirstOrDefault() as MvxViewForAttribute; return attribute?.ViewModel; }