吴磊 - Silverlight企业级RIA

1,014 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,014
On SlideShare
0
From Embeds
0
Number of Embeds
8
Actions
Shares
0
Downloads
15
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

吴磊 - Silverlight企业级RIA

  1. 1. • • •
  2. 2. • • • • •
  3. 3. • • •
  4. 4. B/S  &  C/S RIA   <table> <div> HTML 5
  5. 5. Silverlight                 
  6. 6. .Net Silverlight 4.3M 50M
  7. 7. FPS 100 0.4 500+
  8. 8. WebServices H:pHandler RIAServise
  9. 9. “ ”   Silverlight “ ” “IsolatedStorage” Silverlight • • • Cross-­‐Domain  Policy  Files clientaccesspolicy.xml h:p   h:ps socket-­‐resource Adobe  Flash   crossdomain.xml
  10. 10. XAML System.Windows.Controls   100  System.Windows.Controls.   .Net  Framework UserControl System.Threading (System.Resources) System.Security ADO.Net (System.Windows.Media.AnimaUon)System.Linq System.ReflecUon Linq System.Windows.Media.Effects System.Data.Services System.IO WCF XML System.ServiceModel System.Xml JS  API .Net  Framework System.Net   System.Windows.Interop   Java
  11. 11. Web QQ CRM h:p://msdn.microso_.com/zh-­‐cn/silverlight/ff431226.aspx h:p://www.silverlight.net/showcase/
  12. 12. Bing Map
  13. 13. WBS -­‐ • •
  14. 14. 3 1 2 1 4 2 / UAT Blend UAT Blend TFS  2008
  15. 15. UML
  16. 16. Expression   Blend Sketch   Flow
  17. 17. Silverlight
  18. 18. Silverlight Style="{StaUcResourc e  BlueBu:onStyle}"  
  19. 19. Silverlight <UserControl/> Silverlight XAML Background,  Border,  Font,  IsEnabled,  Padding,  TabIndex,… LoadedEvent,  Height,  Width,  ActualHeight,  ActualWidth,   DataContext  ,  Style,  Tag,  Align,  SetBinding,… Visibility,Effect,  MouseWheelEvent,  Drag,  KeyDown,   MouseEvent  (CaptureMouse,  ReleaseMouseCapture),   AddHandler,  RemoveHandler,  UpdateLayout,  CacheMode,…
  20. 20. Silverlight
  21. 21. Silverlight xmlns:ux="clr-­‐namespace:PACSSLAPP.View.CommonControls“ <ux:XDivid  Canvas.Le_="0"  Canvas.Top="0"  x:Name="DelDivid"  Canvas.ZIndex="100"  Visibility="Collapsed"   Opacity="0.5"/> public  double  AxisLength                {                        get  {  return  (double)GetValue(AxisLengthProperty);  }                        set  {  SetValue(AxisLengthProperty,  value);  }                }                public  staUc  readonly  DependencyProperty  AxisLengthProperty  =                        DependencyProperty.Register("AxisLength",  typeof(double),  typeof(XparameterAxis),                            new  PropertyMetadata(OnAxisLengthChanged));
  22. 22. Silverlight Path this.Line.SetValue(Path.DataProperty,  pathData); MouseLe_Bu:onDownMouseMoveMouseLe_Bu:onUp UserControl.CaptureMouse(); UserControl.ReleaseMouseCapture();
  23. 23. UI Presentation Layer BLLStrategy BLL BLLServices Business Logic Layer Data Access Layer DALFactory IDAL Model public  class  DAL:  IDAL {          … } SQLServer Oracle DAL DAL
  24. 24. UI Presentation Layer BLLStrategy BLL BLLServices Business Logic Layer Data Access Layer DALFactory IDAL Model public  staUc  IDAL  CreateDAL() {          …          return  (IDAL  )objType; } SQLServer Oracle DAL DAL
  25. 25. UI Presentation Layer BLLStrategy BLL BLLServices Business Logic Layer Data Access Layer DALFactory IDAL Model private  IDAL  dal; dal  =  DataAccess.CreateDAL(); return  dal.get(ID); SQLServer Oracle DAL DAL
  26. 26. Silverlight BLLServices Server Server WCF (Httphandler,WebService…) Command Model View Silverlight Client (Xaml+Codebehind) Controller “ ”
  27. 27. Model Server Link or DLL Model Browser
  28. 28. View UI (Xaml+Codebehind) Binding (One WayTwo Way...) Model Data
  29. 29. Silverlight Server Server.Core Silverlight Browser Client.Core Command Silverlight Thread,  DispatchTimer,  BackgroundWorker,  ThreadPool EventHandler
  30. 30. AES Silverlight Server Server Silverlight Browser Client Silverlight  System.Security   AESX. 509ASH1ASH256
  31. 31. Silverlight  Client  MVC  Architecture Silverlight  Client    MVVM  Architecture View View View View (Xaml+Codebehind) (Xaml+Codebehind) (Xaml+Codebehind) (Xaml+Codebehind) Model Model View  Model View  Model Controller& Domain Model Command Context
  32. 32. Silverlight XAP MEF XAP
  33. 33. JS XAP XAP DLL

×