Exemple #1
0
 private void _document_AnObjectPropertyChanged(DOM.ContainerVM container, DOM.UIObjectVM obj, string propertyName)
 {
     if (AnObjectPropertyChanged != null)
     {
         AnObjectPropertyChanged(container, obj, propertyName);
     }
 }
Exemple #2
0
        public override VMBase Clone()
        {
            ContainerVM retVal = new ContainerVM
            {
                _name   = this._name,
                _width  = this._width,
                _height = this._height,
                _margin = this._margin.Clone() as MarginVM,
                _horizontalAlignment = this._horizontalAlignment,
                _verticalAlignment   = this._verticalAlignment,
                _zIndex                  = this._zIndex,
                _padding                 = this._padding,
                _borderThickness         = this._borderThickness,
                _borderColor             = this._borderColor,
                _cornerRadius            = this._cornerRadius,
                _backgroundColor         = this._backgroundColor,
                _horizontalScrollEnabled = this._horizontalScrollEnabled,
                _verticalScrollEnabled   = this._verticalScrollEnabled,
                _contentHeight           = this._contentHeight,
                _contentWidth            = this._contentWidth,
            };

            foreach (UIObjectVM c in _children)
            {
                retVal.AddChild(c.Clone() as UIObjectVM);
            }

            return(retVal);
        }
Exemple #3
0
 private void obj_NameChanged(ContainerVM container, UIObjectVM obj, string propertyName)
 {
     if (CheckChildExist(propertyName, obj))
     {
         obj.CancelNameChange = true;
     }
 }
Exemple #4
0
 private void con_AnObjectPropertyChanged(ContainerVM container, UIObjectVM obj, string propertyName)
 {
     if (AnObjectPropertyChanged != null)
     {
         AnObjectPropertyChanged(container, obj, propertyName);
     }
 }
Exemple #5
0
        private void DocumentVM_AnObjectPropertyChanged(ContainerVM container, UIObjectVM obj, string propertyName)
        {
            if (AnObjectPropertyChanged != null)
            {
                if (container == null)
                {
                    container = this;
                }

                AnObjectPropertyChanged(container, obj, propertyName);
            }
        }