Breaking Changes |
| |
![]() |
| ![]() |
The following pages list important behavior and API changes, which were introduced in this version:
Additional breaking changes in v2008 vol 2.1:
XtraCharts Suite
- Now all date-time values are shown in the designer using the date-time format from the corresponding date-time options (SeriesBase.PointOptions.ArgumentDateTimeOptions, SeriesBase.PointOptions.ValueDateTimeOptions, AxisBase.DateTimeOptions).
eXpressApp Framework (XAF)
- The RuleBase.CreateContext method was removed.
- The RuleBase.IsEmptyValue method was removed. Use the static RuleSet.IsEmptyValue method instead.
- The RuleBaseAttribute class' CreateBaseRule and CreateRule methods were removed. Instead, override the RuleType property to return the type of the rule that the attribute creates.
- The RuleBaseAttribute.CreateRule method returns an IRule object instead of a RuleBase object.
- The RuleBaseAttribute.Id property was removed. Use RuleBaseAttribute.Properties.Id instead.
- The RuleBaseAttribute.SourceName property was removed. Use RuleBaseAttribute.Properties.Id instead.
- The RuleSearchObjectAttribute class was removed.
- The Criteria and IncludeCurrentObject properties of the RuleSearchObject class were moved to the RuleSearchObjectProperties class.
- The RuleSearchObject.GetLooksFor method was removed.
- The RuleSearchObject.LastSearchResults property was removed.
- The ValidationContextsController class was removed.
- The ContextValidationResult.Results property was removed. Use the DisplayableValidationResultItems property instead.
- The RuleSet.IsValid method is obsolete. You will get a compilation error unless you use the RuleSet.ValidateTarget method.
- The RuleSet.IsValidAll method is obsolete. You will get a compilation error unless you use the RuleSet.ValidateAllTargets mehtod.
- The declaration of the RuleSet.Validate(object target, ContextIdentifiers contextIDs, ErrorMessageHandler messageHandler) method was changed to: Validate(object target, ContextIdentifiers contextIDs, ValidationErrorMessageHandler messageHandler).
- The declaration of the RuleSet.ValidateAll(IEnumerable targets, ContextIdentifiers contextIDs, ErrorMessageHandler messageHandler) method was changed to: ValidateAll(IEnumerable targets, ContextIdentifiers contextIDs, ValidationErrorMessageHandler messageHandler).
- Numerous classes from the DevExpress.Presistent.Base namespace were moved from the DevExpress.Persistent.Base to the DevExpress.ExpressApp assembly.
- Use the ITypeInfo type where you previously used the XPClassInfo type.
- Use the IMemberInfo type where you previously used the XPMemberInfo type.
- Use the ITypesInfo type where you previously used the XPDictionary type.
- The ListEditor.AssignDataSourceToControl virtual method has a new parameter now: IList dataSource.
-
When a XafApplication object is not available, you have to create an instance of the ObjectSpace class manually. To do this, use the constructor with two parameters. For instance, this code should be used:
ObjectSpace objectSpace = new ObjectSpace(new UnitOfWork(session.DataLayer), new XpoTypesInfoAdapter(session.DataLayer.Dictionary));
instead of:
ObjectSpace objectSpace = new ObjectSpace(new UnitOfWork(session.DataLayer));
-
The web page templates and css styles have been changed. The following files need to be updated:
- Default.aspx
- Default.aspx.cs
- Default.aspx.designer.cs
- Dialog.aspx
- Dialog.aspx.cs
- Dialog.aspx.designer.cs
- Login.aspx
- Login.aspx.cs
- Login.aspx.designer.cs
- Error.aspx
- Error.aspx.cs
- Error.aspx.designer.cs
- NestedFrameControl.ascx
- NestedFrameControl.ascx.cs
- NestedFrameControl.ascx.designer.cs
- XAFControlsStyle.css
- TemplateStyle.css
- MoveFooter.js