protected LayerPropertiesViewModel(LayerEditorViewModel layerEditorViewModel) { LayerEditorViewModel = layerEditorViewModel; LayerModel = layerEditorViewModel.ProposedLayer; Brush = LayerModel.Properties.Brush.Clone(); }
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"); }
public LayerPropertiesViewModel SetupViewModel(LayerEditorViewModel layerEditorViewModel, LayerPropertiesViewModel layerPropertiesViewModel) { if (layerPropertiesViewModel is GenericPropertiesViewModel) { return(layerPropertiesViewModel); } return(new GenericPropertiesViewModel(layerEditorViewModel)); }
public LayerPropertiesViewModel SetupViewModel(LayerEditorViewModel layerEditorViewModel, LayerPropertiesViewModel layerPropertiesViewModel) { if (layerPropertiesViewModel is AudioPropertiesViewModel) { return(layerPropertiesViewModel); } return(new AudioPropertiesViewModel(layerEditorViewModel)); }
public LayerPropertiesViewModel SetupViewModel(LayerEditorViewModel layerEditorViewModel, LayerPropertiesViewModel layerPropertiesViewModel) { if (layerPropertiesViewModel is AmbientLightPropertiesViewModel) { return(layerPropertiesViewModel); } return(new AmbientLightPropertiesViewModel(layerEditorViewModel)); }
public LayerPropertiesViewModel SetupViewModel(LayerEditorViewModel layerEditorViewModel, LayerPropertiesViewModel layerPropertiesViewModel) { if (layerPropertiesViewModel is KeyPressPropertiesViewModel) { return(layerPropertiesViewModel); } return(new KeyPressPropertiesViewModel(layerEditorViewModel)); }
public LayerPropertiesViewModel SetupViewModel(LayerEditorViewModel layerEditorViewModel, LayerPropertiesViewModel layerPropertiesViewModel) { if (layerPropertiesViewModel is HeadsetPropertiesViewModel) { return(layerPropertiesViewModel); } return(new HeadsetPropertiesViewModel(layerEditorViewModel)); }
public KeyboardPropertiesViewModel(LayerEditorViewModel editorVm) : base(editorVm) { LayerAnimations = new BindableCollection <ILayerAnimation>(editorVm.LayerAnimations); HeightProperties = new LayerDynamicPropertiesViewModel("Height", editorVm); WidthProperties = new LayerDynamicPropertiesViewModel("Width", editorVm); OpacityProperties = new LayerDynamicPropertiesViewModel("Opacity", editorVm); LayerTweenViewModel = new LayerTweenViewModel(editorVm); SelectedLayerAnimation = LayerAnimations.FirstOrDefault(l => l.Name == editorVm.ProposedLayer.LayerAnimation?.Name) ?? LayerAnimations.First(l => l.Name == "None"); }
public AudioPropertiesViewModel(LayerEditorViewModel editorVm) : base(editorVm) { LayerAnimations = new BindableCollection <ILayerAnimation>(editorVm.LayerAnimations); Devices = new BindableCollection <string>(); SelectedLayerAnimation = LayerAnimations.FirstOrDefault(l => l.Name == editorVm.ProposedLayer.LayerAnimation?.Name) ?? LayerAnimations.First(l => l.Name == "None"); SetupAudioSelection(); if (SelectedDevice == null) { SelectedDevice = Devices.First(); } }
public LayerPropertiesViewModel SetupViewModel(LayerEditorViewModel layerEditorViewModel, LayerPropertiesViewModel layerPropertiesViewModel) { var model = layerPropertiesViewModel as KeyboardPropertiesViewModel; if (model == null) { return new KeyboardPropertiesViewModel(layerEditorViewModel) { IsGif = false } } ; model.IsGif = false; return(layerPropertiesViewModel); } }
public KeyPressPropertiesViewModel(LayerEditorViewModel editorVm) : base(editorVm) { }
public LayerPropertiesViewModel SetupViewModel(LayerEditorViewModel layerEditorViewModel, LayerPropertiesViewModel layerPropertiesViewModel) { return((layerPropertiesViewModel as ConicalBrushPropertiesViewModel) ?? new ConicalBrushPropertiesViewModel(layerEditorViewModel)); }
public AmbientLightPropertiesViewModel(LayerEditorViewModel editorVm) : base(editorVm) { }
public AudioPropertiesViewModel(LayerEditorViewModel editorVm) : base(editorVm) { }
public FolderPropertiesViewModel(LayerEditorViewModel editorVm) : base(editorVm) { }