//----------------------------------------------------------------- protected void OnTemplateEditChanged_UpdateObservers() //note: on edit changed.. component value is not taken into consideration { //note: can clear the _observersList, cause otherwise the _observersList elements are cloned from the template ObserversList.ForEach(x => { TemplateInstance.CloneTo(x); x.IsInEditMode = false; }); if (OnTemplateEditChanged != null) { OnTemplateEditChanged(); } }
public void ClearObservers() { ObserversList.ForEach(AssetsPath.DestroyAsset); ObserversList.Clear(); }