public SKSizePropertyInputViewModel(LayerProperty <SKSize> layerProperty, IProfileEditorService profileEditorService, IModelValidator <SKSizePropertyInputViewModel> validator) : base(layerProperty, profileEditorService, validator) { _widthRegistration = layerProperty.GetDataBindingRegistration(size => size.Width); _heightRegistration = layerProperty.GetDataBindingRegistration(size => size.Height); }
public ColorGradientPropertyInputViewModel(LayerProperty <ColorGradient> layerProperty, IProfileEditorService profileEditorService) : base(layerProperty, profileEditorService) { }
public TimelineViewModel(LayerPropertiesViewModel layerPropertiesViewModel, IObservableCollection <LayerPropertyGroupViewModel> layerPropertyGroups, IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; LayerPropertiesViewModel = layerPropertiesViewModel; LayerPropertyGroups = layerPropertyGroups; SelectionRectangle = new RectangleGeometry(); }
public ParticlesConfigurationViewModel(ParticleLayerBrush particlesBrush, IDialogService dialogService, IProfileEditorService profileEditorService) : base(particlesBrush) { _dialogService = dialogService; _profileEditorService = profileEditorService; ParticlesBrush = particlesBrush; Properties = ParticlesBrush.Properties; ParticleViewModels = new BindableCollection <ParticleViewModel>(); LoadConfiguration(); }
public LayerEditorService(ISettingsService settingsService, IProfileEditorService profileEditorService) { _settingsService = settingsService; }
public SKSizePropertyInputViewModel(IProfileEditorService profileEditorService) : base(profileEditorService) { }
public StringPropertyInputViewModel(LayerProperty <string> layerProperty, IProfileEditorService profileEditorService) : base(layerProperty, profileEditorService) { // This is a fairly dumb input that can only take text and nothing else so it needs no special logic in its VM }
public PropertyTreeViewModel(LayerPropertiesViewModel layerPropertiesViewModel, IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; LayerPropertiesViewModel = layerPropertiesViewModel; PropertyTreeItemViewModels = new BindableCollection <PropertyTreeItemViewModel>(); _profileEditorService.CurrentTimeChanged += (sender, args) => Update(false); _profileEditorService.SelectedProfileElementUpdated += (sender, args) => Update(true); }
public TreeGroupViewModel(LayerPropertyGroupViewModel layerPropertyGroupViewModel, IProfileEditorService profileEditorService, IDialogService dialogService, IWindowManager windowManager) { _profileEditorService = profileEditorService; _dialogService = dialogService; _windowManager = windowManager; LayerPropertyGroupViewModel = layerPropertyGroupViewModel; LayerPropertyGroup = LayerPropertyGroupViewModel.LayerPropertyGroup; DetermineGroupType(); }
public TimelineKeyframeViewModel(LayerPropertyKeyframe <T> layerPropertyKeyframe, IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; LayerPropertyKeyframe = layerPropertyKeyframe; EasingViewModels = new BindableCollection <TimelineEasingViewModel>(); }
public TimelineGroupViewModel(LayerPropertyGroupViewModel layerPropertyGroupViewModel, IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; LayerPropertyGroupViewModel = layerPropertyGroupViewModel; LayerPropertyGroup = LayerPropertyGroupViewModel.LayerPropertyGroup; KeyframePositions = new BindableCollection <double>(); UpdateKeyframePositions(); }
public PropertyTrackKeyframeViewModel(PropertyTrackViewModel propertyTrackViewModel, BaseKeyframe keyframe, IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; PropertyTrackViewModel = propertyTrackViewModel; Keyframe = keyframe; EasingViewModels = new BindableCollection <PropertyTrackEasingViewModel>(); CreateEasingViewModels(); }
public GifLayerBrushProvider(IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; }
public IntPropertyInputViewModel(LayerProperty <int> layerProperty, IProfileEditorService profileEditorService, IModelValidator <IntPropertyInputViewModel> validator) : base(layerProperty, profileEditorService, validator) { _registration = layerProperty.GetDataBindingRegistration(value => value); }
public SKPointPropertyInputViewModel(LayerProperty <SKPoint> layerProperty, IProfileEditorService profileEditorService, IModelValidator <SKPointPropertyInputViewModel> validator) : base(layerProperty, profileEditorService, validator) { _xRegistration = layerProperty.GetDataBindingRegistration <float>("X"); _yRegistration = layerProperty.GetDataBindingRegistration <float>("Y"); }
public ViewpointMoveToolViewModel(ProfileViewModel profileViewModel, IProfileEditorService profileEditorService) : base(profileViewModel, profileEditorService) { Cursor = Cursors.Hand; ProfileViewModel.PanZoomViewModel.LastPanPosition = null; }
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 RgbNetColorBrushProvider(IProfileEditorService profileEditorService) { _profileEditorService = profileEditorService; }