Microsoft silverlight 5 building rich enterprise dashboards

288 196 0
Microsoft silverlight 5  building rich enterprise dashboards

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

www.it-ebooks.info Microsoft Silverlight 5: Building Rich Enterprise Dashboards Create, customize, and design rich enterprise dashboards with Microsoft Silverlight Todd Snyder, Joel Eden, Ph.D Jeff Smith, Matthew Duffield professional expertise distilled P U B L I S H I N G BIRMINGHAM - MUMBAI www.it-ebooks.info Microsoft Silverlight 5: Building Rich Enterprise Dashboards Copyright © 2012 Packt Publishing All rights reserved No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews Every effort has been made in the preparation of this book to ensure the accuracy of the information presented However, the information contained in this book is sold without warranty, either express or implied Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals However, Packt Publishing cannot guarantee the accuracy of this information First published: January 2012 Production Reference: 1170112 Published by Packt Publishing Ltd Livery Place 35 Livery Street Birmingham B3 2PB, UK ISBN 978-1-84968-234-3 www.packtpub.com Cover Image by Sandeep Babu (sandyjb@gmail.com) www.it-ebooks.info Credits Authors Technical Editor Todd Snyder Joyslita D'Souza Joel Eden, Ph.D Sonali Tharwani Jeff Smith Indexer Matthew Duffield Tejal Daruwale Project Coordinator Reviewers Leena Purkait Curtis Taylor Michael Crump Proofreader Siddharth Mehta Clyde Jenkins Peter Meany Graphics Acquisition Editor Manu Joseph Kerry George Production Coordinator Lead Technical Editor Nilesh Mohite Alina Lewis Cover Work Nilesh Mohite www.it-ebooks.info About the Authors Todd Snyder has been a Software Developer/Architect for over 17 years During that time, he has spent several years as a Consultant, providing technical guidance and leadership for the development of Enterprise Class Systems on the Microsoft Platform At Infragistics, he is a principal consultant who focuses on the design and construction of RIA and N-tier based applications Todd is the co-leader for the New Jersey NET user group (http://www.njdotnet.net/) and is a frequent speaker at trade shows, code camps, and Firestarters Joel Eden, Ph.D has been working in the area of user experience and design methods for over 10 years Currently a Senior Interaction Designer working on UX Tools at Infragistics, he previously spent years in the Infragistics UX Services group, consulting for external clients Prior to Infragistics, he worked at multiple design agencies in the Philadelphia area, as well as working at Lockheed Martin's Advanced Technology Labs He holds a B.S in Computer Science, and a PhD in Information Science, both from Drexel University I would like to thank my wife Kathleen and my daughters Abigail and Genevieve, for giving me reasons to design a better future www.it-ebooks.info Jeff Smith has been a Visual Designer for years During that time he has been an Art Director at various agencies and studied Special Effects and Animation at NYU A convert from Flash and Flex, he has been working with NET technologies for the past years, specializing in WPF and Silverlight At Infragistics, he is an UX Visual Designer who focuses on the design, implementation, and User Experience You can view some of his work at http://www.thinksinkstudio.com I would like to thank my friends, family, girlfriend, and colleagues for providing support and inspiration Matt Duffield is the Architect at emGovPower, a leading software provider for managing city and county governments With over 15 years of working in IT, he enjoys building rich user-centric applications Matt is very active in the community, speaking at user groups and code camps He is an INETA speaker member and has been a Microsoft MVP in Client Application Development He started working in NET as soon as it was available to the development community and was also an early adopter of both WPF and Silverlight He believes good business intelligence (BI) architecture is the formula for a successful software package that looks beyond just data and provides insightful information His blog can be found at http:// mattduffield.wordpress.com You can follow him on Twitter at @mattduffield Matt currently lives in Charlotte, North Carolina with his wife and two sons First of all, I would like to thank my family and colleagues who have been instrumental in helping me work on this book It is their encouragement and enthusiasm that has in turn been my drive for writing I have always loved working in Silverlight, and I look forward to many more years doing the same I would also like to thank the team at Packt Publishing for allowing me to become a part of this book and having the patience and wisdom to help me during the writing process It has been a wonderful experience, and I look forward to doing it again in the future www.it-ebooks.info About the Reviewers Curtis Taylor is a Principal Consultant at Infragistics, Inc When he first started studying human interaction with products, objects and particularly software interfaces, he noticed people often believed they were dumb when they did not understand an interface However, rather than fixing the problem, the industry standardized interfaces which lacked the ability to engage most users The industry attempted to fix the user, rather than the interfaces Designing interface is an interaction between user and developer Two things drew him to Software Development—the abstraction of writing code and the challenge of presenting that abstraction to human beings in a way they can understand People are organic Computers are not So the work of making software interfaces more understandable, practical, and enjoyable became something he wanted to Software development is his connection to serving people People are more important than things Perhaps his message will be communicated in the interfaces he creates, the code he writes, and the feedback, training, and team-work he offers to other developers He loves WPF and Silverlight! So much so, Infragistics found and hired him to be a consultant and trainer At Infragistics he works directly with customers helping them solve technical and UI-related issues with WPF and Silverlight, he provides training as a fellow software engineer, and he develops custom solutions for customers who wish to utilize their services a step beyond the capabilities of their products Michael Crump is an MCPD who has been involved with computers in one way or another for as long as he can remember, but started professionally in 2002 After spending years working as a System Administrator/Tech Support Analyst, Michael branched out and started developing internal utilities that automated repetitive tasks and freed up full-time employees From there, he was offered a job working at McKesson corporation and has been working with some form of NET and VB/C# since 2003 www.it-ebooks.info Michael is currently serving as a Subject Matter Expert (SME) and Content Editor on several other Silverlight publications He resides in Birmingham, AL with his wife Amanda and children Ridley and Adrienne He shares his findings in his personal blog: http://michaelcrump.net, and he also tweets at @mbcrump Siddharth Mehta is a Business Intelligence professional with more than nine years of experience, and presently works in the role of a Technology Architect for Accenture Services Pvt Ltd (Mumbai, India), in the capacity of an Associate Manager Prior to Accenture, he has worked at Capgemini with clients including Walt Disney Pictures and Television, CitiBank, Transport for London, and ABN AMRO He started his career in 2002 with Visual Basic and SQL Server, and since then he has been majorly working with SQL Server, Business Intelligence, Data Warehousing, Dimensional Modeling, Information visualization design, and related technologies He is known for his writing in the field of Microsoft Business Intelligence He has authored a whitepaper for MSDN Library, titled Bulk Report generation using SSIS and SSRS 2008 R2 He continues authoring content on MS BI for community sites such as MSSQLTips.com, SQLServerCentral.com, SQL-Server-Performance.com, and others He has been the Technical Reviewer of the book Microsoft SQL Azure Enterprise Application Development He has won awards such as Microsoft Most Valuable Professional CY'11, Capgemini India Envoy FY'10, and others through the course of his career He shares his insights on business intelligence through his blog: http://siddhumehta.blogspot.com He can be reached at siddhumehta_brain@yahoo.co.in Through thick and thin, all I am today is the result of my parent's (Divya Mehta and Kaushik Mehta) vision and my brother's (Rahul Mehta) support to solve troubles before it reaches me I am grateful to them for taking care of my responsibilities while I remained busy reviewing this book www.it-ebooks.info www.PacktPub.com Support files, eBooks, discount offers and more You might want to visit www.PacktPub.com for support files and downloads related to your book Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub com and as a print book customer, you are entitled to a discount on the eBook copy Get in touch with us at service@packtpub.com for more details At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks http://PacktLib.PacktPub.com Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library Here, you can access, read and search across Packt's entire library of books Why Subscribe? • • • Fully searchable across every book published by Packt Copy and paste, print and bookmark content On demand and accessible via web browser Free Access for Packt account holders If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books Simply use your login credentials for immediate access Instant Updates on New Packt Books Get notified! Find out when new books are published by following @PacktEnterprise on Twitter, or the Packt Enterprise Facebook page www.it-ebooks.info Table of Contents Preface Chapter 1: The Silverlight Technology What benefit does Silverlight bring to the table? XAML as a declarative programming model Model-View-ViewModel (MVVM) View First versus ViewModel First Dependency Injection (DI) Silverlight as a Web technology Asynchronous programming in Silverlight Silverlight features Client-side application development Reduced server load Client-side state Cross-browser development simplified Putting the pieces together Summary Chapter 2: Overview of Dashboards and Silverlight What are dashboards Purpose of dashboards Problems dashboards solve Current state of building dashboards When good just isn't good enough Why should we use Silverlight? Summary Chapter 3: Silverlight Design and Development Tools Blend strengths and weaknesses Visual Studio strengths and weaknesses Visual States www.it-ebooks.info 5 6 11 14 16 16 21 21 22 23 23 24 25 26 32 35 36 37 38 41 43 44 46 48 Chapter 10 { Product product = new Product { ProductId = item[«Title»].ToString(), ProductName = item[«ProductName»].ToString(), UnitPrice = double.Parse(item[«UnitPrice»].ToString()) }; product.AddUnitsInStock(int.Parse(item[«UnitsInStock»] ToString())); products.Add(product); } this.Products = products; } SharePoint Data Access Strategies When working with SharePoint, there are several different approaches you can take for accessing data While it fairly easy to set up a SharePoint list, it is usually not the best option for a production application; especially if you have a large amount of data or a complex data structure In such cases, you should use a RDMBS database, such as SQL server, and build custom Windows Communication Foundation (WCF) services that expose your application data to your Silverlight Dashboard If you are using SharePoint Office Server 2010, you can use the Business Connectivity Services (BCS) to set up number of external data sources, including RDMBS, AS400 Links, or external Web Services To access the BCS, you need to use the SharePoint Object Model from your custom Windows Communication Foundation service Summary In this chapter we gave an overview of how to use SharePoint 2010 to host Silverlight dashboard applications We walked through how to setup SharePoint 2010 on Windows 7, and introduced you to building Silverlight web parts and use the client object model to retrieve data from SharePoint Whether you are building a dashboard or other line of business application, the combination of SharePoint and Silverlight in a powerful platform to utilize [ 259 ] www.it-ebooks.info www.it-ebooks.info Index AtomPub 233 Atom publishing Protocol See  AtomPub Await 16 Symbols XAP extension 63 XAP file 21 B A AdventureWorks dashboard application about 172 N-Tier layered approach, using 166-168 AdventureWorks Dashboard application presentation layer, defining 197 server components, building 180 AdventureWorks dashboard sample 164 Adventure Works Database about 32, 167 URL 164 AdventureWorksDW2008R2 database 173 aesthetics 109 agile processes 102 AJAX 36, 38 analytical dashboards 88, 89 Application Programming Interface (API) 11, 222 area chart 28 ASP.NET MVC 38 ASP.NET MVC programming model ASP.NET Web Forms 38 ASPX host page 171 Assets panel 129 Async 16 Async CTP about 63 URL 64 asynchronous programming, Silverlight 16 asynchronous technology 63 bar chart about 28, 29, 90 benefits 90 limitations 91 Basecamp URL 110 Behaviors 39 Bitbucket about 65 URL 65 Blend about 41, 44 basics 128 custom user control, creating in 157-160 sample data, creating 52, 53 Sample Data feature 52-54 Silverlight project, creating 45, 46 splash screen 44 strengths 44 Templates feature 55-58 weaknesses 44 Blend 128 Blend UI panels 128-135 Blend UI, panels Assets 129 Data 130 Design View (Artboard) 130 Objects and Timeline 131 Parts 132 www.it-ebooks.info Projects 132 Properties 132 Resources 134 Results 134 States 135 brushes converting, into resources 152-154 Brush object 135 bullet graph about 89, 93 benefits 93 limitations 93 BulletGraph 203 bulletgraphchart 185 Business Intelligence (BI) 25 business layer 37, 39 Button Control Template, exploring 137-139 creating 136, 137 Button's Control Template exploring 137-139 ClientAccessPolicy.xml file 223 client_DownloadStringCompleted method 216 client-side application development, Silverlight 21 client-side state, Silverlight 22 COM Automation 17, 23 command binding setting up 71 CommandParameter property 71 Confluence URL 65 Control Template 136 cross-browser development simplification, Silverlight 23 crosstabs 94 CSS 38 Custom Button Control Template creating 140-144 custom User Control creating, in Blend 157-160 C D C# 128 Caliburn URL 72 Caliburn.Micro about 11, 63 URL 64 Caliburn.Micro 1.2 11 CASE/WHEN SQL statement 178 chart about 27 data, binding to 81, 82 styling 160, 161 thresholds, including 30 types 27-29 viewing, with multiple series 29 Chart control using 81 chartjunk 89 chart, types area 28 bar 28, 29 line 29 ClickOnce 36 DashbaordRequest class 196 dashboard application building, MVVM pattern used 73 data binding, setting up 78-82 data source, setting up 74 Model classes, defining 75, 77 UI, customizing 83, 84 View-Model classes, defining 75, 77 XAML, laying out 78-82 DashboardContext class 181, 182, 187, 194, 196 dashboard design example scenarios 105, 106 pre-attentive processing, applying to 111, 112 DashboardFilter class 181, 182, 189, 194 DashboardResult class 196 dashboards 1980 Fiat Spider example 33 2007 Chrysler Town & Country example 33 about 25, 26, 88 current state 36 ECG example 35 [ 262 ] www.it-ebooks.info elements 26, 27 environment 36 evolution 34 examples 33 issues, solving 35 need for 32 prerequisites 164 requisites 164, 165 scenario-based design 102-105 scenario-based requisites 102-105 solution, designing 166 styling 157 types 88, 89 user-centered design, applying for 96, 97 scenario-based design 114 dashboards, elements about 27 gauges 27 graphs 27 reports 27 score cards 27 strategy map 27 table 27 dashboards environment desktop solution 36 Silverlight solution 37 web solution 36 DashboardService class 195 dashboards, types analytical 88, 89 operational 88, 89 strategic 88 DashboardViewModel 205 dashboard wireframe 115 data binding, to chart 81, 82 data access overview 214 Data Access Layer 187-191 data access layer, WCF 224-226 database schema reviewing 173, 174 data binding about 39, 70 setting up 78-82 data layer 37, 39 Data panel 130 data source database schema, reviewing 173, 174 setting up 74, 172 stored procedures 174, 175 DataTemplates 40 DataTemplateSelector 40 Data Transfer Object See  DTO debugging environment, Visual Studio 60-62 delegate command 72 dependency injection (DI) 6, 11-14 Design View (Artboard) 130 desktop solution 36 developer 127 digital dashboard, of ECG 35 Dispatcher class 215 DLL Hell 14 DLLs 14 Domain Model about 180 key classes 181-186 Domain Model, classes DashboardContext 181, 182 DashboardFilter 181, 182 FinancialKPIItem 181, 184 KPIItem 181, 186 SalesTerritoryKPI 181 Don't Repeat Yourself See  DRY principle dropshadows effect 157 DRY principle DTO about 7, 38 INotifyPropertyChanged interface, implementing 8, E electrocardiograph (ECG) monitoring 35 Entity Framework 39 Entity Framework 24 example scenarios, for dashboard design 105, 106 executive dashboard example 165 [ 263 ] www.it-ebooks.info F features, Silverlight 17, 18 features, Storyboards 52 features, trusted application 17 Fiddler about 218 URL 218 using 218 FilterViewModel 205, 208 FinancialIndicatorControl 201 FinancialKPIItem class 181, 184, 191 Fireworks 41 flash policy file (crossdomain.xml) 220 G gauges 27 GetCommand method 187-191 GetDashboardData method 195 GetDashboard method 209, 211 Git URL 65 github URL 65 GPS systems 33 Graphics Processing Unit (GPU) 20 graphs 27 Grid styling 160, 161 implementing, DTO used 8, interaction aesthetic about 110 versus visual aesthetics 110 iPhone rough sketch 98 IProductSoapService interface 227 ISAPI Filter 175 J JavaScript 38 Java Script Object Notation See  JSON Jira URL 65 JIRA 64 jQuery 38 JSON about 38, 233 URL 230 K Key Performance Indicator (KPI) about 30, 83, 164 example 30, 31 KPI Dashboard components 165 KPI Dashboard, components financial indicators section 165 header (filters) section 165 top customers 166 top products section 166 yearly sales by region section 165 KPIItem class 181, 186 H high fidelity mockups 102 HTTP 214 HTTP classes 214 HTTPS protocol 214 HttpWebRequest class 214 HttpWebResponse class 214 L I ICommand interface 72 IDashboardService interface 195, 197, 211 IDashboardViewModel interface 205 InitializeService method 237 INotifyPropertyChanged interface about 9, 71 Language Integrated Query See  LINQ line chart 29 line graph about 91 benefits 92 limitations 92 Line of Business (LOB) applications LINQ 214 Linq2SQL Linq-to-SQL 39 [ 264 ] www.it-ebooks.info ListBox about 70 properties 57 sample data, displaying in 55, 56 NHibernate 39 N-Tier application design overview 166-168 sample project structure 168-171 NuGet 24 M magic strings Managed Extensible Framework See  MEF MapItem method 187-190 MEF about 12 comparing, with Unity 14 using 13, 14 Mercurial URL 65 Microsoft Expression Blend See  Blend Microsoft Prism URL 72 Model about classes, defining 75, 77 Model View Controller See  MVC pattern Model View View-Model See  MVVM MouseOver state about 146, 147 modifying 50 transistions, adding to 148, 149 multivariate analysis 94 MVC pattern 71 MVVM about 6-9, 39, 163, 166 View First, comparing with ViewModel First 10 MVVM Light about 12 URL 72 MVVM pattern about 70-72 used, for building dashboard application 73 N NAnt URL 64 network security 219 new keyword 13 O object relational mapping (ORM) 39 Objects and Timeline panel 131 OData about 22, 233 data services, building 235-238 external service, consuming 238, 239 URL 234 OData data services exploring 234 OData service building 235-238 OLAP cubes 25, 173 operational dashboards 88, 89 P panels, Blend UI Assets 129 Data 130 Design View (Artboard) 130 Objects and Timeline 131 Parts 132 Projects 132 Properties 132 Resources 134 Results 134 States 135 Parts panel 132 persona 100 pie chart about 95 benefits 95 limitations 96 PInvoke 17 pivot tables 94 pixel snapping 18 Plain Old CLR Objects See  POCO plain old WCF operations 22 POCO 38, 180 postscript vector printing 19 [ 265 ] www.it-ebooks.info Button, creating 136, 137 Custom Button Control Template, creating 140-144 Visual States, adding 144-146 Resources panel 134 REST 230 REST service about 230 building 230-233 Results panel 134 Rich Internet Application (RIA) 213 pre-attentive attributes about 111 attribuites mixing warning 113 visual distractors warning 113 warnings 113 pre-attentive processing about 111 applying, to dashboard design 111, 112 prerequisites, for dashboards 164 presentation layer about 37-39 defining 197 Service Layer pattern 209-211 View and controls 197-204 View Model 205, 208 Pressed state modifying 50 Pressed State 149-151 Prism about 10, 12, 63 URL 64 Prism 4.0 10, 12 Products.xml file 216 project management, Visual Studio 64, 65 Projects panel 132 Properties panel 132 PropertyChanged event 71 prototypes 101 S R reduced server load feature, Silverlight 21, 22 reporting 25 reports 27 repository 187 Representational State Transfer See  REST requisites, for dashboards 164, 165 resource dictionary about 135 creating 155-157 resources about 135 brushes, converting into 152-154 implementing 136 referencing 136 resources, implementing Sales collection 186 SalesTerritoryKPI class 181, 190 sample data displaying, in ListBox 55, 56 Sample Data feature 52-54 scatterplot about 92 benefits 92 limitations 92 scenario-based design dashboards, requisites about 114 filter by geographic region 119 filter by product category 120 performance data, for key KPIs 116 sales data, viewing by both geographic region and product category at same time 121 top 10 customers, viewing based on revenue 122-125 under or over performing KPIs 117, 118 scenarios 100, 102 score cards 27 ScrollViewer control 78 security policy files, Silverlight ClientAccessPolicy.xml 220 crossdomain.xml 220 server components building 180 server components, building Data Access Layer 187-191 Domain Model 180 WCF service 194,-197 [ 266 ] www.it-ebooks.info serviceClient_GetDashboardDataCompleted method 211 Service Layer pattern 209-211 services building, with WCF 221, 222 Silverlight about 5, 213 as web technology 14 asynchronous programming 16 client-side application development 21 client-side state 22 core networking classes 214 cross-browser development simplification 23 dashboard application, building 68, 69 dashboards 25, 26 data access overview 214 dependency injection (DI) 11-14 environment set up, requisites 23, 24 features 17, 18 MVVM 6-9 MVVM pattern 70-72 reasons, for using 38 reduced server load feature 21, 22 security policy files 220 styling in 135 tips, for developing 63 URL, for downloading tools 68 XAML, as declarative programming model Silverlight about capabilities 18 enhanced Window feature 20 graphic enhancements 19 improvements 18, 19 3D capabilities 20 Silverlight application building 38-41 business layer 39 data layer 39 presentation layer 39 Silverlight dashboard application about 67 building 68, 69 Silverlight Navigation Application 68 Silverlight policy files (ClientAccessPolicy.xml) 220 Silverlight project creating, in Blend 45, 46 creating, in Visual Studio 47 Silverlight solution 37 Silverlight, styling resources, implementing 136 resources, referencing 136 Silverlight Toolkit Chart control 78 sketches 101 SketchFlow 41 small multiples about 94 benefits 95 limitations 95 SOAP service about 227 building 227, 229 socket-based networking classes 214 SortedValue property 186 Sparkline control 202 sparklines about 32, 89, 94, 186 benefits 94 limitations 94 spFinanceData procedure 178 spFinanceData stored procedure 191 splash screen, Blend 44 splash screen, Visual Studio 47 spreadsheets 25 spSalesByRegion procedure 177 spSalesByRegion stored procedure 190 spTopInternetProducts procedure 189 spTopUsInternetCustomers procedure 176 spTopUsInternetProducts procedure 175 SQL 174 SQL Server 2008 Express URL 164 stacked bar chart about 91 benefits 91 limitations 91 StackPanel control 78 States panel 135 static resource 136 stored procedures [ 267 ] www.it-ebooks.info about 174, 175 spFinanceData 178 spSalesByRegion 177 spTopUsInternetCustomers 176 spTopUsInternetProducts 175 Storyboards about 51, 101 examples 101 features 52 strategic dashboards about 88 goals 88 strategy map 27 System.Net.Sockets namespace 214 pie chart 95, 96 scatterplot 92 small multiples 94 sparklines 94 stacked bar chart 91 typical dashboard graphs See  typical dashboard charts U T TabControl 40 table 27 TeamCity about 64 URL 64 Team Foundation Server See  TFS Templates feature 55-58 TextBox 70 Text property 45 TFS 64 Toast Notifications 23 ToList()command 77 TopCustomerControl 204 TopProductsControl 204 TortoiseGit about 64 URL 65 TortoiseHg 64 transistions adding, to MouseOver State 148, 149 Trend property 186 TrickPlay 18 Triggers 39 trusted application features 17 typical dashboard charts about 89 bar chart 90 bullet graph 93 line graph 91, 92 UI customizing 83, 84 Unfuddle about 64 URL 65 UNION SQL statement 177 Unity about 14 comparing, with MEF 14 Use Cases 102 user-centered design about 87, 99 applying, for dashboards 96, 97 requisites 100 user experience (UX) about 96 communicating 97-99 representing 97-99 user research about 99 conducting 99 high-fidelity mockups 102 persona 100 prototypes 101 scenarios 100 sketches 101 storyboards 101 wireframes 101 User Stories 102 using statement 215 V View First about 10 versus ViewModel First 10 View Model about 205, 208 [ 268 ] www.it-ebooks.info classes, defining 75, 77 ViewModel 7, 39 ViewModel class ViewModel First about 10 versus View First 10 ViewModelLocater class 10 Views 6, 39 visual aesthetics about 110 example 110 versus interaction aesthetics 110 VisualStateManager 41 Visual States about 41, 48, 144 adding 144-146 MouseOver 146, 147 Pressed 149-151 Visual Studio about 46, 59 debugging environment 60-62 project management tools 64 Silverlight project, creating in 47 splash screen 47 strengths 46 weaknesses 46 Visual Studio 2010 128 Visual Studio Async CTP (SP1 Refresh) 16 W WCF about 22, 163, 214 core services 220, 221 data access layer 224-226 data services 221 RIA services 221 services, building with 221, 222 working with 223 WCF Core Services 221 WCF Data Services 22, 221 WCF RIA Services 22, 221 WCF service about 166 building 194-197 WebClient working with 214-217 WebClient class 214 WebClientDownloadStringAsync method 74 web.config file 187 web host 39 web solution about 36 factors 37, 38 web technology, Silverlight 14 Windows Windows Communication Foundation See  WCF Windows Phone Windows Presentation Foundation See  WPF wireframes 101 WPF 6, 17 X XAML about 70, 128 as declarative programming model laying out 78-82 XamlReader.Load( ) method 40 XAML snippet, for MouseOver state 51 XAML technology 38 XAP file 74 XCopy 15 XLINQ 77, 215, 224 XMLA 175 xUnit.net about 64 URL 64 [ 269 ] www.it-ebooks.info www.it-ebooks.info Thank you for buying Microsoft Silverlight 5: Building Rich Enterprise Dashboards About Packt Publishing Packt, pronounced 'packed', published its first book "Mastering phpMyAdmin for Effective MySQL Management" in April 2004 and subsequently continued to specialize in publishing highly focused books on specific technologies and solutions Our books and publications share the experiences of your fellow IT professionals in adapting and customizing today's systems, applications, and frameworks Our solution based books give you the knowledge and power to customize the software and technologies you're using to get the job done Packt books are more specific and less general than the IT books you have seen in the past Our unique business model allows us to bring you more focused information, giving you more of what you need to know, and less of what you don't Packt is a modern, yet unique publishing company, which focuses on producing quality, cutting-edge books for communities of developers, administrators, and newbies alike For more information, please visit our website: www.packtpub.com About Packt Enterprise In 2010, Packt launched two new brands, Packt Enterprise and Packt Open Source, in order to continue its focus on specialization This book is part of the Packt Enterprise brand, home to books published on enterprise software – software created by major vendors, including (but not limited to) IBM, Microsoft and Oracle, often for use in other corporations Its titles will offer information relevant to a range of users of this software, including administrators, developers, architects, and end users Writing for Packt We welcome all inquiries from people who are interested in authoring Book proposals should be sent to author@packtpub.com If your book idea is still at an early stage and you would like to discuss it first before writing a formal book proposal, contact us; one of our commissioning editors will get in touch with you We're not just looking for published authors; if you have strong technical skills but no writing experience, our experienced editors can help you develop a writing career, or simply get some additional reward for your expertise www.it-ebooks.info Microsoft Silverlight Business Application Development: Beginner’s Guide ISBN: 978-1-847199-76-8 Paperback: 412 pages Build enterprise-ready business applications with Silverlight An introduction to building enterprise-ready business applications with Silverlight quickly Get hold of the basic tools and skills needed to get started in Silverlight application development Integrate different media types, taking the RIA experience further with Silverlight, and much more! Microsoft Silverlight Data and Services Cookbook ISBN: 978-1-847199-84-3 Paperback: 476 pages Over 80 practical recipes for creating rich, data-driven business applications in Silverlight Design and develop rich data-driven business applications in Silverlight Rapidly interact with and handle multiple sources of data and services within Silverlight business applications Packed with practical, hands-on cookbook recipes, illustrating the techniques to solve particular data problems effectively within your Silverlight business applications Please check www.PacktPub.com for information on our titles www.it-ebooks.info Silverlight User Interface Cookbook ISBN: 978-1-847198-86-0 Paperback: 280 pages Build and implement rich, standard-friendly user interfaces with Silverlight and Expression Blend The first and only book to focus exclusively on Silverlight UI development Have your applications stand out from the crowd with leading, innovative, and friendly user interfaces Real world projects which you can explore in detail and make modifications as you go 3D Game Development with Microsoft Silverlight 3: Beginner's Guide ISBN: 978-1-847198-92-1 Paperback: 452 pages A practical guide to creating real-time responsive online 3D games in Silverlight using C#, XBAP WPF, XAML, Balder, and Farseer Physics Engine Develop online interactive 3D games and scenes in Microsoft Silverlight and XBAP WPF Integrate Balder 3D engine 1.0, Farseer Physics Engine 2.1, and advanced objectoriented techniques to simplify the game development process Enhance development with animated 3D characters, sounds, music, physics, stages, gauges, and backgrounds Please check www.PacktPub.com for information on our titles www.it-ebooks.info .. .Microsoft Silverlight 5: Building Rich Enterprise Dashboards Create, customize, and design rich enterprise dashboards with Microsoft Silverlight Todd Snyder, Joel... 233 2 35 238 240 241 241 242 244 248 252 252 253 259 259 261 [v] www.it-ebooks.info www.it-ebooks.info Preface Welcome, to the exciting world of building Rich Enterprise Dashboards with Silverlight. .. Developing for Silverlight Project Management Summary 51 52 55 59 60 63 64 66 Chapter 4: Building a Basic Dashboard 67 Chapter 5: Dashboard Types and User Needs 87 Creating a Silverlight Dashboard

Ngày đăng: 13/03/2019, 10:44

Mục lục

  • Cover

  • Copyright

  • Credits

  • About the Authors

  • About the Reviewers

  • Table of Contents

  • Preface

  • Chapter 1: The Silverlight Technology

    • What benefit does Silverlight bring to the table?

      • XAML as a declarative programming model

      • Model-View-ViewModel (MVVM)

        • View First versus ViewModel First

        • Dependency Injection (DI)

        • Silverlight as a Web technology

        • Asynchronous programming in Silverlight

        • Silverlight features

        • Client-side application development

        • Reduced server load

        • Client-side state

        • Cross-browser development simplified

        • Putting the pieces together

        • Summary

        • Chapter 2: Overview of Dashboards and Silverlight

          • What are dashboards

Tài liệu cùng người dùng

Tài liệu liên quan