コード例 #1
0
 public void RefreshOnContentChange()
 {
     LoadedImageList.Clear();
     ImageList.Clear();
     LoadImagesFromProject();
     LoadAnimationsFromProject();
     CreateDefaultMaterial2D();
     RaisePropertyChanged("ImageList");
 }
コード例 #2
0
        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");
        }