Silverlight Search Page
This generator creates a standard Silverlight search page with a criteria panel
and a results grid based on a single model operation, for which a list row and criteria
Xomega objects are defined.
For the most part this generator is similar to the
WPF Search Form generator. However, due to the differences between Silverlight
and WPF, the generated page has to be slightly different as outlined below.
- The generated page uses the Silverlight version of the Xomega Framework and the
corresponding namespace.
- The property names are hardcoded in the XAML for the control bindings, since Silverlight
doesn't support x:Static.
- Silverlight DataGrid is used instead of the WPF grid view.
- TextBlock is used instead of Label.
- Each TextBlock that serves as a label has an explicit binding of the FontWeight
to the Required attribute of the property.
- All service operations are invoked asynchronously.
This generator can be rerunnable during initial prototyping phase to allow quickly
visualizing the object model. During this phase you can add additional code to a
separate partial class, e.g. to add a Details button handler to navigate to a details
page. However, you will eventually want to edit the generated code manually to remove
columns or fields that should not be displayed and perhaps add other controls or
rearrange the controls on the page. At this point you may want to rename the generated
file, so that the generator doesn't accidentally override it or delete it during
the cleanup operation. This is why it is recommended to make the generated files
start with an underscore to distinguish them from non-generated files.
Below is a sample page that was generated by this generator.
|