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

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

			_verticalScale.Visible = false;
			_verticalScale.IsMirrored = true;
		}
Example #2
0
        public CompositeScaleGraphic()
        {
            Graphics.Add(_horizontalScale = new ScaleGraphic {
                Name = _horizontalName
            });
            Graphics.Add(_verticalScale = new ScaleGraphic {
                Name = _verticalName
            });

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

            _verticalScale.Visible    = false;
            _verticalScale.IsMirrored = true;
        }
Example #3
0
 private void OnCloneComplete()
 {
     _horizontalScale = Graphics.OfType <ScaleGraphic>().FirstOrDefault(g => g.Name == _horizontalName);
     _verticalScale   = Graphics.OfType <ScaleGraphic>().FirstOrDefault(g => g.Name == _verticalName);
 }
Example #4
0
		protected ScaleGraphic(ScaleGraphic source, ICloningContext context)
		{
			context.CloneFields(source, this);
		}
 protected ScaleGraphic(ScaleGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
Example #6
0
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 /// <param name="source">The source object from which to clone.</param>
 /// <param name="context">The cloning context object.</param>
 private ScaleGraphic(ScaleGraphic source, ICloningContext context)
 {
     context.CloneFields(source, this);
 }
		private void OnCloneComplete()
		{
			_horizontalScale = Graphics.OfType<ScaleGraphic>().FirstOrDefault(g => g.Name == _horizontalName);
			_verticalScale = Graphics.OfType<ScaleGraphic>().FirstOrDefault(g => g.Name == _verticalName);
		}
Example #8
0
		/// <summary>
		/// Cloning constructor.
		/// </summary>
		/// <param name="source">The source object from which to clone.</param>
		/// <param name="context">The cloning context object.</param>
		private 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);
 }
 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);
 }