Report post

Are you sure you want to report the post shown below? This will send an email to the ATVO administrators. Please include a short reason for reporting.

Users reporting for no reason may be locked out.


Post

Posted by Nick Thissen
on
Sorry, I was wrong, you cannot use 'Find' like that on the Items collection. Instead, you can use this line:
var widget = item.Theme.WidgetBases.FirstOrDefault(i => i.Name == name);


You'll also need to add this at the top near all the other "using" lines:
using System.Linq;