public IntRangePropertyInputViewModel(LayerProperty <IntRange> layerProperty,
                                       IProfileEditorService profileEditorService,
                                       IModelValidator <IntRangePropertyInputViewModel> validator) : base(layerProperty, profileEditorService, validator)
 {
     _startRegistration = layerProperty.GetDataBindingRegistration <int>("Start");
     _endRegistration   = layerProperty.GetDataBindingRegistration <int>("End");
 }
Beispiel #2
0
 public IntPropertyInputViewModel(LayerProperty <int> layerProperty, IProfileEditorService profileEditorService, IModelValidator <IntPropertyInputViewModel> validator)
     : base(layerProperty, profileEditorService, validator)
 {
     _registration = layerProperty.GetDataBindingRegistration <int>("Value");
 }
 public FloatPropertyInputViewModel(LayerProperty <float> layerProperty, IProfileEditorService profileEditorService, IModelValidator <FloatPropertyInputViewModel> validator)
     : base(layerProperty, profileEditorService, validator)
 {
     _registration = layerProperty.GetDataBindingRegistration(value => value);
 }
Beispiel #4
0
 public SKSizePropertyInputViewModel(LayerProperty <SKSize> layerProperty, IProfileEditorService profileEditorService,
                                     IModelValidator <SKSizePropertyInputViewModel> validator) : base(layerProperty, profileEditorService, validator)
 {
     _widthRegistration  = layerProperty.GetDataBindingRegistration <float>("Width");
     _heightRegistration = layerProperty.GetDataBindingRegistration <float>("Height");
 }
 public SKColorPropertyInputViewModel(LayerProperty <SKColor> layerProperty, IProfileEditorService profileEditorService) : base(layerProperty, profileEditorService)
 {
     _registration = layerProperty.GetDataBindingRegistration <SKColor>("Value");
 }
Beispiel #6
0
 public SKPointPropertyInputViewModel(LayerProperty <SKPoint> layerProperty, IProfileEditorService profileEditorService,
                                      IModelValidator <SKPointPropertyInputViewModel> validator) : base(layerProperty, profileEditorService, validator)
 {
     _xRegistration = layerProperty.GetDataBindingRegistration(point => point.X);
     _yRegistration = layerProperty.GetDataBindingRegistration(point => point.Y);
 }