public CompositeScaleGraphic()
            {
                base.Graphics.Add(_horizontalScale = new ScaleGraphic {
                    Name = _horizontalName
                });
                base.Graphics.Add(_verticalScale = new ScaleGraphic {
                    Name = _verticalName
                });

                _horizontalScale.Visible    = false;
                _horizontalScale.IsMirrored = true;

                _verticalScale.Visible    = false;
                _verticalScale.IsMirrored = true;
            }
Esempio n. 2
0
 protected ScaleGraphic(ScaleGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
 private void OnCloneComplete()
 {
     _horizontalScale = (ScaleGraphic)CollectionUtils.SelectFirst(Graphics, graphic => graphic is ScaleGraphic && graphic.Name == _horizontalName);
     _verticalScale   = (ScaleGraphic)CollectionUtils.SelectFirst(Graphics, graphic => graphic is ScaleGraphic && graphic.Name == _verticalName);
 }