build your silver light application

27
By Pranay Rana Image copied from : Nikhil Kothari’s Blog Blog : http://pranayamr.blogspot.com Twitter : http://twitter.com/pranayamr FaceBook : http://www.facebook.com/pages/GMind-Solution

Upload: pranay-rana

Post on 24-May-2015

785 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Build your silver light application

By Pranay Rana

Image copied from : Nikhil Kothari’s BlogBlog : http://pranayamr.blogspot.com

Twitter : http://twitter.com/pranayamrFaceBook : http://www.facebook.com/pages/GMind-Solution

Page 2: Build your silver light application

• How Silverlight application work

• Domain Service

• MetaData and Shared Files

• Bindings and DataContext

• Validations (Client side and Server side)

• CRUD operation

Page 3: Build your silver light application

Rich application

Page 4: Build your silver light application
Page 5: Build your silver light application
Page 6: Build your silver light application
Page 7: Build your silver light application
Page 8: Build your silver light application
Page 9: Build your silver light application

8/1/11

Page 10: Build your silver light application

8/1/11

Page 11: Build your silver light application
Page 12: Build your silver light application

8/1/11

Page 13: Build your silver light application

• Domain services are Windows Communication Foundation (WCF) services that encapsulate the business logic of a WCF RIA Services application.

Page 14: Build your silver light application

• WCF RIA Services simplifies the traditional n-tier application pattern

• Enable client and server by exposing code on client side which is written on server side

• Enable entity , validation logic

Page 15: Build your silver light application

• Partial classes of the entity classes designed by enity model

• Same as entity class just to add attribute to the property , Never get called

• Defined by added following attribute at top

[MetadataTypeAttribute(typeof(classname))]

Page 16: Build your silver light application

8/1/11

Page 17: Build your silver light application

• Allow to share code between client and server

• Allow to share the business login between server and clientI used it for the validation purpose

Page 18: Build your silver light application

• Source of Data

• Most of the time its an instance of entity.

Page 19: Build your silver light application

property="{Binding}"

property="{Binding Path=pathvalue}"

property="{Binding

oneOrMoreBindingProperties}"

Property ="{Binding Path=pathvalue,

oneOrMoreBindingProperties}"

Page 20: Build your silver light application

Converter

ConverterCulture

ConverterParameter

Mode

Source

Path

NotifyOnValidationError

ValidatesOnExceptions

Page 21: Build your silver light application

• One Way binding

– Data Flow from entity instance to presentation

• Two Way binding

– Data Flow form entity instance to presentation and presentation to entity instance

Page 22: Build your silver light application

• Data Annotation Validation Attributes

– Required

– StringLength

– Regular Expressions

– Range (for numeric inputs)

• Custom Validation Attributes

Page 23: Build your silver light application
Page 24: Build your silver light application

8/1/11

Page 25: Build your silver light application
Page 26: Build your silver light application

Question and

Query

Page 27: Build your silver light application

Thank YOU