Beispiel #1
0
        internal void NotifyPropertyChanged(XamlModelProperty property)
        {
            Debug.Assert(property != null);
            OnPropertyChanged(new System.ComponentModel.PropertyChangedEventArgs(property.Name));

            ((XamlComponentService)this.Services.Component).RaisePropertyChanged(property);
        }
        /// <summary>
        /// raises the Property changed Events
        /// </summary>
        internal void RaisePropertyChanged(XamlModelProperty property)
        {
            var ev = this.PropertyChanged;

            if (ev != null)
            {
                ev(this, new DesignItemPropertyChangedEventArgs(property.DesignItem, property));
            }
        }
        public override DesignItemProperty GetProperty(string name)
        {
            XamlModelProperty property;

            if (propertiesDictionary.TryGetValue(name, out property))
            {
                return(property);
            }
            property = new XamlModelProperty(_item, _item.XamlObject.FindOrCreateProperty(name));
            propertiesDictionary.Add(name, property);
            return(property);
        }
Beispiel #4
0
            public PropertyChangeAction(XamlModelProperty property, XamlPropertyValue newValue, bool newIsSet)
            {
                this.property = property;
                this.newValue = newValue;
                this.newIsSet = newIsSet;

                oldIsSet           = property._property.IsSet;
                oldValue           = property._property.PropertyValue;
                oldValueOnInstance = property._property.ValueOnInstance;

                if (oldIsSet && oldValue == null && property.IsCollection)
                {
                    collectionTransactionItem = property._collectionElements.CreateResetTransaction();
                }
            }
 public XamlModelCollectionElementsCollection(XamlModelProperty modelProperty, XamlProperty property)
 {
     this.modelProperty = modelProperty;
     this.property      = property;
     this.context       = (XamlDesignContext)modelProperty.DesignItem.Context;
 }