private void _document_AnObjectPropertyChanged(DOM.ContainerVM container, DOM.UIObjectVM obj, string propertyName) { if (AnObjectPropertyChanged != null) { AnObjectPropertyChanged(container, obj, propertyName); } }
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); }
private void obj_NameChanged(ContainerVM container, UIObjectVM obj, string propertyName) { if (CheckChildExist(propertyName, obj)) { obj.CancelNameChange = true; } }
private void con_AnObjectPropertyChanged(ContainerVM container, UIObjectVM obj, string propertyName) { if (AnObjectPropertyChanged != null) { AnObjectPropertyChanged(container, obj, propertyName); } }
private void DocumentVM_AnObjectPropertyChanged(ContainerVM container, UIObjectVM obj, string propertyName) { if (AnObjectPropertyChanged != null) { if (container == null) { container = this; } AnObjectPropertyChanged(container, obj, propertyName); } }