public void UpdateTo(FlatRedBall.Content.ContentManager contentManager) { backingData = contentManager; base.RaisePropertyChanged("Name"); ContainedContent.Clear(); // force refresh? List <ContentViewModel> contentList = new List <ContentViewModel>(); foreach (var item in backingData.DisposableObjects) { var contentViewModel = new ContentViewModel(item); contentViewModel.Parent = this; contentList.Add(contentViewModel); } foreach (var item in contentList.OrderBy(item => item.Name)) { ContainedContent.Add(item); } }
public void UpdateTo(FlatRedBall.Content.ContentManager contentManager) { backingData = contentManager; base.RaisePropertyChanged("Name"); ContainedContent.Clear(); // force refresh? List<ContentViewModel> contentList = new List<ContentViewModel>(); foreach (var item in backingData.DisposableObjects) { var contentViewModel = new ContentViewModel(item); contentViewModel.Parent = this; contentList.Add(contentViewModel); } foreach(var item in contentList.OrderBy(item=>item.Name)) { ContainedContent.Add(item); } }