public GenericPropertiesViewModel(LayerEditorViewModel editorVm) : base(editorVm) { LayerAnimations = new BindableCollection<ILayerAnimation>(editorVm.LayerAnimations); OpacityProperties = new LayerDynamicPropertiesViewModel("Opacity", editorVm); SelectedLayerAnimation = LayerAnimations.FirstOrDefault(l => l.Name == editorVm.ProposedLayer.LayerAnimation?.Name) ?? LayerAnimations.First(l => l.Name == "None"); }