public TimelinePropertyViewModel(LayerProperty <T> layerProperty, LayerPropertyViewModel layerPropertyViewModel, IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; LayerProperty = layerProperty; LayerPropertyViewModel = layerPropertyViewModel; }
private void CreateViewModels(LayerPropertyViewModel property) { PropertyTrackViewModels.Add(_propertyTrackViewModelFactory.Create(this, property)); foreach (var child in property.Children) { CreateViewModels(child); } }
public TreePropertyViewModel(LayerProperty <T> layerProperty, LayerPropertyViewModel layerPropertyViewModel, IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; LayerProperty = layerProperty; LayerPropertyViewModel = layerPropertyViewModel; PropertyInputViewModel = _profileEditorService.CreatePropertyInputViewModel(LayerProperty); PropertyInputViewModel.ConductWith(this); }
public PropertyTrackViewModel(PropertyTimelineViewModel propertyTimelineViewModel, LayerPropertyViewModel layerPropertyViewModel, IPropertyTrackKeyframeViewModelFactory propertyTrackKeyframeViewModelFactory) { _propertyTrackKeyframeViewModelFactory = propertyTrackKeyframeViewModelFactory; PropertyTimelineViewModel = propertyTimelineViewModel; LayerPropertyViewModel = layerPropertyViewModel; KeyframeViewModels = new BindableCollection <PropertyTrackKeyframeViewModel>(); PopulateKeyframes(); UpdateKeyframes(PropertyTimelineViewModel.LayerPropertiesViewModel.PixelsPerSecond); }
public TimelinePropertyViewModel(LayerProperty <T> layerProperty, LayerPropertyViewModel layerPropertyViewModel, IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; LayerProperty = layerProperty; LayerPropertyViewModel = layerPropertyViewModel; LayerProperty.KeyframesToggled += LayerPropertyOnKeyframesToggled; LayerProperty.KeyframeAdded += LayerPropertyOnKeyframeAdded; LayerProperty.KeyframeRemoved += LayerPropertyOnKeyframeRemoved; UpdateKeyframes(); }
public TreePropertyViewModel(LayerProperty <T> layerProperty, LayerPropertyViewModel layerPropertyViewModel, IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; LayerProperty = layerProperty; LayerPropertyViewModel = layerPropertyViewModel; PropertyInputViewModel = _profileEditorService.CreatePropertyInputViewModel(LayerProperty); _profileEditorService.SelectedDataBindingChanged += ProfileEditorServiceOnSelectedDataBindingChanged; LayerProperty.VisibilityChanged += LayerPropertyOnVisibilityChanged; LayerProperty.DataBindingEnabled += LayerPropertyOnDataBindingChange; LayerProperty.DataBindingDisabled += LayerPropertyOnDataBindingChange; LayerPropertyViewModel.IsVisible = !LayerProperty.IsHidden; }
public PropertyTreeParentViewModel(LayerPropertyViewModel layerPropertyViewModel) { LayerPropertyViewModel = layerPropertyViewModel; Children = new BindableCollection <PropertyTreeItemViewModel>(); foreach (var childProperty in layerPropertyViewModel.Children) { if (childProperty.Children.Any()) { Children.Add(new PropertyTreeParentViewModel(childProperty)); } else { Children.Add(new PropertyTreeChildViewModel(childProperty)); } } }
public PropertyTreeChildViewModel(LayerPropertyViewModel layerPropertyViewModel) { LayerPropertyViewModel = layerPropertyViewModel; PropertyInputViewModel = layerPropertyViewModel.GetPropertyInputViewModel(); }