public object GetFirstAmbientValue (params XamlType [] types) { foreach (var obj in GetAllAmbientValues (types)) return obj; return null; }