The following sections highlight the noteworthy enhancements and new features included in this update.
Batch update support for sorted collection
The initial release of Crosslight has include support for batch update which allows you to perform multiple changes to a collection and have the view processes the changes simultaneously instead of individually. However, the initial batch update operation supports only raw/unsorted collection. In this update, the batch update feature has been further improved to support sorted collection. This allows you to dynamically add multiple items to a sorted list and process the changes simultaneously in a smooth, beautiful animation – similar to the Apple's built-in Mail app.
For more information, read our blog post here.
Async methods for Crosslight core services
Crosslight ships with dozens of cross-platform services that allow you easily consume them in your shared project such as in ViewModel. These services were initially designed with callback API to avoid dependencies to the additional async .NET library. In this release, the async methods are now added to the Enterprise App Framework in the form of extensions. You can now intuitively write code with async keyword.
The following code example shows how to perform modal navigation and processes the results, and compare the original callback and the new async API.
Now with async:
Android DateTimePicker in FormBuilder
Android now includes a revamped DateTimePicker for Android form builder, this includes view suited for either portrait or landscape orientation.
To use the date time picker in the form builder, you can use the EditorAttribute Class and specify the editor type to DateTime as seen in the following code.
Content navigation support in iOS master detail component
Crosslight 2 ships with an advanced master detail component that lets you easily shows a list of items in the left panel and the details in the right panel.
Due to popular demand and feedback, the iOS master detail component has been further improved to support content navigation which enables you to display different detail content according to the navigation item. This feature allows you to easily build iPad-like settings interface, or virtually any content you wish to show in the detail.
To test out this feature, download the updated sample collection from our Git server here. The sample for this particular feature can be found in the MyInventory_MasterDetail folder.
Improvements to Enterprise App Framework
Enterprise App Framework is introduced in Crosslight 2 to provide a set of design best practices and guidelines in building cross-platform enterprise apps. In this release, the framework has received significant improvements to cover even wider range of scenarios. It adds support for:
- Retrieving data through named query – CROS-341
- Refactored account API to support single-sign-on scenario with app-wide scope – CROS-342
- In addition, changes to the related entities can now be easily tracked during editing, see CROS-357
More improvements can be seen in the update list below.
About Crosslight 2
This update is building on Crosslight 2 release which includes 200+ new features that make enterprise cross-platform apps development a breeze. Take a look at all the new features in the Crosslight 2.0 Release Notes and see what you are missing out on!
Updates and fixes in this release
This release includes the following updates and bug fixes: