validation - Silverlight MVVM Business Application : Where to place the resource files? -


the default silverlight business application (vs2010) creates resources files (validationerrorresources.resx , registrationdataresources.resx) in web project , creates links these in silverlight project.

but in client silverlight project there resource files (applicationstrings.resx , errorresources.resx)

i implement following design:

client

  • presentation.silverlight (only xaml)
  • presentation.viewmodel (viewmodels
  • presentation.domain (entities , links validation resource files)

server

  • server.infra (entity framwork)
  • server.domain (poco entities + repositories + validation resource files)
  • server.web (web applicatin project)

my question : put resource files translations labels presentation layer ?

is defined in : presentation.silverlight, presentation.viewmodel or presentation.domain ???

itb depends on label onviously! instance display name of field ....need same on application thus, needs defined on server side...i.e. in data annotations of business classes.

on contrary title of action menu might belong presentation layer.


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -