Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Build your silver light application


Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Build your silver light application

  1. 1. By Pranay Rana Image copied from : Nikhil Kothari’s Blog Blog : Twitter : FaceBook :
  2. 2. <ul><li>How Silverlight application work </li></ul><ul><li>Domain Service </li></ul><ul><li>MetaData and Shared Files </li></ul><ul><li>Bindings and DataContext </li></ul><ul><li>Validations (Client side and Server side) </li></ul><ul><li>CRUD operation </li></ul>
  3. 3. Rich application
  4. 9. 8/1/11
  5. 10. 8/1/11
  6. 12. 8/1/11
  7. 13. <ul><li>Domain services are Windows Communication Foundation (WCF) services that encapsulate the business logic of a WCF RIA Services application. </li></ul>
  8. 14. <ul><li>WCF RIA Services simplifies the traditional n-tier application pattern </li></ul><ul><li>Enable client and server by exposing code on client side which is written on server side </li></ul><ul><li>Enable entity , validation logic </li></ul>
  9. 15. <ul><li>Partial classes of the entity classes designed by enity model </li></ul><ul><li>Same as entity class just to add attribute to the property , Never get called </li></ul><ul><li>Defined by added following attribute at top </li></ul><ul><ul><li>[MetadataTypeAttribute(typeof(classname))] </li></ul></ul>
  10. 16. 8/1/11
  11. 17. <ul><li>Allow to share code between client and server </li></ul><ul><li>Allow to share the business login between server and client </li></ul><ul><ul><li>I used it for the validation purpose </li></ul></ul>
  12. 18. <ul><li>Source of Data </li></ul><ul><li>Most of the time its an instance of entity. </li></ul>
  13. 19. <ul><li>property=&quot;{Binding}&quot; </li></ul><ul><li>property=&quot;{Binding Path=pathvalue}&quot; </li></ul><ul><li>property=&quot;{Binding </li></ul><ul><li>oneOrMoreBindingProperties}&quot; </li></ul><ul><li>Property =&quot;{Binding Path=pathvalue, </li></ul><ul><li>oneOrMoreBindingProperties}&quot; </li></ul>
  14. 20. <ul><li>Converter </li></ul><ul><li>ConverterCulture </li></ul><ul><li>ConverterParameter </li></ul><ul><li>Mode </li></ul><ul><li>Source </li></ul><ul><li>Path </li></ul><ul><li>NotifyOnValidationError </li></ul><ul><li>ValidatesOnExceptions </li></ul>
  15. 21. <ul><li>One Way binding </li></ul><ul><ul><li>Data Flow from entity instance to presentation </li></ul></ul><ul><li>Two Way binding </li></ul><ul><ul><li>Data Flow form entity instance to presentation and presentation to entity instance </li></ul></ul>
  16. 22. <ul><li>Data Annotation Validation Attributes </li></ul><ul><ul><li>Required </li></ul></ul><ul><ul><li>StringLength </li></ul></ul><ul><ul><li>Regular Expressions </li></ul></ul><ul><ul><li>Range (for numeric inputs) </li></ul></ul><ul><li>Custom Validation Attributes </li></ul>
  17. 24. 8/1/11
  18. 26. <ul><li>Question </li></ul><ul><li>and </li></ul><ul><li>Query </li></ul>
  19. 27. <ul><li>Thank YOU </li></ul>