/// <summary> /// This method is called if the value of a Control changed on a PageView object. /// </summary> /// <param name="propertyName"> /// The Property Name mapped to the Control. /// </param> /// <param name="propertyValue"> /// The new value. /// </param> public void PropertyChanged(string propertyName, string propertyValue) { if (PropertyStore != null) { _propertyToBePersisted = new KeyValuePair <string, string>(propertyName, propertyValue); PropertyPageSite?.OnStatusChange(Constants.ProppagestatusDirty | Constants.ProppagestatusValidate); } }
/// <summary> /// This method is called if the value of a Control changed on a PageView object. /// </summary> /// <param name="propertyName"> /// The Property Name mapped to the Control. /// </param> /// <param name="propertyValue"> /// The new value. /// </param> public void PropertyChanged(string propertyName, string propertyValue) { if (PropertyStore != null) { propertyToBePersisted = new KeyValuePair <string, string>(propertyName, propertyValue); if (PropertyPageSite != null) { // Informs the frame that the property page managed by this site has // changed its state, that is, one or more property values have been // changed in the page. PropertyPageSite.OnStatusChange(Constants.PROPPAGESTATUS_DIRTY | Constants.PROPPAGESTATUS_VALIDATE); } } }