示例#1
0
        public TimelinePropertyViewModel(LayerProperty <T> layerProperty, LayerPropertyViewModel layerPropertyViewModel, IProfileEditorService profileEditorService)
        {
            _profileEditorService = profileEditorService;

            LayerProperty          = layerProperty;
            LayerPropertyViewModel = layerPropertyViewModel;
        }
示例#2
0
 private void CreateViewModels(LayerPropertyViewModel property)
 {
     PropertyTrackViewModels.Add(_propertyTrackViewModelFactory.Create(this, property));
     foreach (var child in property.Children)
     {
         CreateViewModels(child);
     }
 }
示例#3
0
        public TreePropertyViewModel(LayerProperty <T> layerProperty, LayerPropertyViewModel layerPropertyViewModel, IProfileEditorService profileEditorService)
        {
            _profileEditorService  = profileEditorService;
            LayerProperty          = layerProperty;
            LayerPropertyViewModel = layerPropertyViewModel;

            PropertyInputViewModel = _profileEditorService.CreatePropertyInputViewModel(LayerProperty);
            PropertyInputViewModel.ConductWith(this);
        }
示例#4
0
        public PropertyTrackViewModel(PropertyTimelineViewModel propertyTimelineViewModel,
                                      LayerPropertyViewModel layerPropertyViewModel,
                                      IPropertyTrackKeyframeViewModelFactory propertyTrackKeyframeViewModelFactory)
        {
            _propertyTrackKeyframeViewModelFactory = propertyTrackKeyframeViewModelFactory;
            PropertyTimelineViewModel = propertyTimelineViewModel;
            LayerPropertyViewModel    = layerPropertyViewModel;
            KeyframeViewModels        = new BindableCollection <PropertyTrackKeyframeViewModel>();

            PopulateKeyframes();
            UpdateKeyframes(PropertyTimelineViewModel.LayerPropertiesViewModel.PixelsPerSecond);
        }
示例#5
0
        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;
        }
示例#7
0
        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));
                }
            }
        }
示例#8
0
 public PropertyTreeChildViewModel(LayerPropertyViewModel layerPropertyViewModel)
 {
     LayerPropertyViewModel = layerPropertyViewModel;
     PropertyInputViewModel = layerPropertyViewModel.GetPropertyInputViewModel();
 }