public bool GetStartClosed() { GadgetViewRequirements reqs = GetGadgetViewRequirements(); // if the page specific reqs are present, honor those. Otherwise defaut to true for regular gadgets, false for sandbox gadgets return(reqs != null?reqs.GetStartClosed() : !gadgetSpec.FromSandbox()); }