public void RefreshOnContentChange() { LoadedImageList.Clear(); ImageList.Clear(); LoadImagesFromProject(); LoadAnimationsFromProject(); CreateDefaultMaterial2D(); RaisePropertyChanged("ImageList"); }
private void LoadImagesFromProject() { var foundContent = service.GetAllContentNamesByType(ContentType.Image); foreach (string content in foundContent) { if (!content.StartsWith("Default") && !content.EndsWith("Font")) { LoadedImageList.Add(content); } } RaisePropertyChanged("LoadedImageList"); }